From ede5be119fd321bc5de33a1b44a4e991b0fcb7ff Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 12 May 2017 14:32:38 -0500 Subject: [PATCH] Skips changing prosody config on upgrading jitsi-meet-tokens package. --- debian/jitsi-meet-tokens.postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinst index 47cea831d..d33042a74 100644 --- a/debian/jitsi-meet-tokens.postinst +++ b/debian/jitsi-meet-tokens.postinst @@ -48,7 +48,9 @@ case "$1" in db_stop 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 sed -i 's/--plugin_paths/plugin_paths/g' $PROSODY_HOST_CONFIG sed -i 's/authentication = "anonymous"/authentication = "token"/g' $PROSODY_HOST_CONFIG