Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Configures Jicofo when jitsi-meet-tokens package is installed
paweldomasac8e1ce3889f
diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinstindex 4343e219a6..ac194ff4b0 100644--- a/debian/jitsi-meet-tokens.postinst+++ b/debian/jitsi-meet-tokens.postinst@@ -66,6 +66,18 @@ case "$1" insed -i "s/ --app_secret=example_app_secret/ app_secret=$APP_SECRET/g" $PROSODY_HOST_CONFIGsed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG+ # Configure Jicofo properties+ JICOFO_CONFIG="/etc/jitsi/jicofo/sip-communicator.properties"+ if ! grep -q "org.jitsi.jicofo.auth.jwt.APP_ID" $JICOFO_CONFIG && \+ ! grep -q "org.jitsi.jicofo.auth.jwt.APP_SECRET" $JICOFO_CONFIG; then+ echo "org.jitsi.jicofo.auth.jwt.APP_ID=$APP_ID" >> $JICOFO_CONFIG+ echo "org.jitsi.jicofo.auth.jwt.APP_SECRET=$APP_SECRET" >> $JICOFO_CONFIG+ # Restart Jicofo+ if [ -x "/etc/init.d/jicofo" ]; then+ invoke-rc.d jicofo restart+ fi+ fi+if [ -x "/etc/init.d/prosody" ]; theninvoke-rc.d prosody reloadfidiff --git a/debian/jitsi-meet-tokens.postrm b/debian/jitsi-meet-tokens.postrmindex 53a69f530f..44582f20ad 100644--- a/debian/jitsi-meet-tokens.postrm+++ b/debian/jitsi-meet-tokens.postrm@@ -44,6 +44,20 @@ case "$1" insed -i "s/ app_secret=$APP_SECRET/ --app_secret=example_app_secret/g" $PROSODY_HOST_CONFIGsed -i 's/ modules_enabled = { "token_verification" }/ --modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG+ JICOFO_CONFIG="/etc/jitsi/jicofo/sip-communicator.properties"+ if [ -f "$JICOFO_CONFIG" ] ; then+ if grep -q "org.jitsi.jicofo.auth.jwt.APP_ID" $JICOFO_CONFIG || \+ grep -q "org.jitsi.jicofo.auth.jwt.APP_SECRET" $JICOFO_CONFIG; then+ sed -i.old "/org.jitsi.jicofo.auth.jwt.APP_ID=$APP_ID/d" $JICOFO_CONFIG+ sed -i.old "/org.jitsi.jicofo.auth.jwt.APP_SECRET=$APP_SECRET/d" $JICOFO_CONFIG+ rm "$JICOFO_CONFIG.old"+ # Restart Jicofo+ if [ -x "/etc/init.d/jicofo" ]; then+ invoke-rc.d jicofo restart+ fi+ fi+ fi+if [ -x "/etc/init.d/prosody" ]; theninvoke-rc.d prosody reloadfi