Skips changing prosody config on upgrading jitsi-meet-tokens package.

This commit is contained in:
damencho 2017-05-12 14:32:38 -05:00 committed by Дамян Минков
parent b7c57d306a
commit ede5be119f
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ case "$1" in
db_stop db_stop
if [ -f "$PROSODY_HOST_CONFIG" ] ; then if [ -f "$PROSODY_HOST_CONFIG" ] ; then
if grep -q "plugin_paths" "$PROSODY_HOST_CONFIG"; then # search for --plugin_paths, if this is not enabled this is the
# first time we install tokens package and needs a config change
if grep -q "\-\-plugin_paths" "$PROSODY_HOST_CONFIG"; then
# enable tokens in prosody host config # enable tokens in prosody host config
sed -i 's/--plugin_paths/plugin_paths/g' $PROSODY_HOST_CONFIG sed -i 's/--plugin_paths/plugin_paths/g' $PROSODY_HOST_CONFIG
sed -i 's/authentication = "anonymous"/authentication = "token"/g' $PROSODY_HOST_CONFIG sed -i 's/authentication = "anonymous"/authentication = "token"/g' $PROSODY_HOST_CONFIG