[__jitsi_meet] Fix issue with jicofo memory adaptation

That was being a bit of a mess.

Sponsored by:   camilion.eu, eXO.cat
This commit is contained in:
evilham 2022-04-21 17:52:49 +02:00
parent 1658121549
commit 7e2ba98d36
Signed by untrusted user: evilham
GPG key ID: AE3EE30D970886BF

View file

@ -24,7 +24,7 @@ if cut -f 2 "${__object}/explorer/configured-memory" | grep -qvE "^${MAX_MEMORY}
-e 's!^(#[[:space:]]*)?(VIDEOBRIDGE_MAX_MEMORY)=.*\$!\2=${MAX_MEMORY}!' \ -e 's!^(#[[:space:]]*)?(VIDEOBRIDGE_MAX_MEMORY)=.*\$!\2=${MAX_MEMORY}!' \
/usr/share/jitsi-videobridge/lib/videobridge.rc /usr/share/jitsi-videobridge/lib/videobridge.rc
sed -i.tmp -E \ sed -i.tmp -E \
-e 's!(JICOFO_MAX_MEMORY)[^;]+;!\1=${MAX_MEMORY};!' \ -e 's!(JICOFO_MAX_MEMORY)[^";]+;!\1=${MAX_MEMORY};!' \
/usr/share/jicofo/jicofo.sh /usr/share/jicofo/jicofo.sh
EOF EOF
fi fi