|
@@ -44,6 +44,20 @@ case "$1" in
|
44
|
44
|
sed -i "s/ app_secret=$APP_SECRET/ --app_secret=example_app_secret/g" $PROSODY_HOST_CONFIG
|
45
|
45
|
sed -i 's/ modules_enabled = { "token_verification" }/ --modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
|
46
|
46
|
|
|
47
|
+ JICOFO_CONFIG="/etc/jitsi/jicofo/sip-communicator.properties"
|
|
48
|
+ if [ -f "$JICOFO_CONFIG" ] ; then
|
|
49
|
+ if grep -q "org.jitsi.jicofo.auth.jwt.APP_ID" $JICOFO_CONFIG || \
|
|
50
|
+ grep -q "org.jitsi.jicofo.auth.jwt.APP_SECRET" $JICOFO_CONFIG; then
|
|
51
|
+ sed -i.old "/org.jitsi.jicofo.auth.jwt.APP_ID=$APP_ID/d" $JICOFO_CONFIG
|
|
52
|
+ sed -i.old "/org.jitsi.jicofo.auth.jwt.APP_SECRET=$APP_SECRET/d" $JICOFO_CONFIG
|
|
53
|
+ rm "$JICOFO_CONFIG.old"
|
|
54
|
+ # Restart Jicofo
|
|
55
|
+ if [ -x "/etc/init.d/jicofo" ]; then
|
|
56
|
+ invoke-rc.d jicofo restart
|
|
57
|
+ fi
|
|
58
|
+ fi
|
|
59
|
+ fi
|
|
60
|
+
|
47
|
61
|
if [ -x "/etc/init.d/prosody" ]; then
|
48
|
62
|
invoke-rc.d prosody reload
|
49
|
63
|
fi
|