From e1ce5ae28348592f2169e8f3bdb28c6f17e08fa2 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Mon, 29 Sep 2014 18:00:20 +0300 Subject: [PATCH] Fixes detecting whether prosody was newly configured on update/install. --- debian/jitsi-meet-prosody.postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinst index a41c7b841..e006a7116 100644 --- a/debian/jitsi-meet-prosody.postinst +++ b/debian/jitsi-meet-prosody.postinst @@ -40,7 +40,7 @@ case "$1" in gunzip -c /usr/share/doc/jitsi-meet-prosody/prosody.cfg.lua-jvb.example.gz > /etc/prosody/prosody.cfg.lua fi - if [ "PROSODY_CONFIG_PRESENT" = "true" ]; then + if [ "$PROSODY_CONFIG_PRESENT" = "true" ]; then cp /etc/prosody/prosody.cfg.lua /etc/prosody/prosody.cfg.lua.orig fi sed -i "s/jitmeet.example.com/$JVB_HOSTNAME/g" /etc/prosody/prosody.cfg.lua @@ -58,7 +58,7 @@ case "$1" in ln -sf /var/lib/prosody/$JVB_HOSTNAME.key /etc/prosody/certs/$JVB_HOSTNAME.key ln -sf /var/lib/prosody/$JVB_HOSTNAME.crt /etc/prosody/certs/$JVB_HOSTNAME.crt - if [ "PROSODY_CONFIG_PRESENT" = "true" ]; then + if [ "$PROSODY_CONFIG_PRESENT" = "true" ]; then invoke-rc.d prosody reload else invoke-rc.d prosody restart