From 5a254ba949f19e9b06e96f49bb7a0fb990cb9e74 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 9 Sep 2015 15:15:09 -0500 Subject: [PATCH] Uses jvb config file from the new location. Fixes a problem where reconfiguring can break package installation due to missing jvb config file. --- debian/jitsi-meet.postinst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/jitsi-meet.postinst b/debian/jitsi-meet.postinst index 794cb124ad..125978243d 100644 --- a/debian/jitsi-meet.postinst +++ b/debian/jitsi-meet.postinst @@ -21,7 +21,6 @@ case "$1" in configure) JVB_ETC_CONFIG="/etc/jitsi/videobridge/config" - JVB_CONFIG="/usr/share/jitsi-videobridge/.sip-communicator/sip-communicator.properties" . $JVB_ETC_CONFIG @@ -65,11 +64,19 @@ case "$1" in # this is new install let's configure jvb to serve meet if [[ -z $FORCE_NGINX && ( -z $JVB_HOSTNAME_OLD || "$JVB_SERVE" = "true" ) ]] ; then + + JVB_CONFIG="/etc/jitsi/videobridge/sip-communicator.properties" + # this is a reconfigure, lets just delete old links if [ "$RECONFIGURING" = "true" ] ; then rm -f $JVB_CONFIG fi + # we will write to the file if missing create it + if [ ! -f $JVB_CONFIG ] ; then + touch $JVB_CONFIG + fi + # configure jvb echo "AUTHBIND=yes" >> $JVB_ETC_CONFIG sed -i "s/JVB_OPTS=.*/JVB_OPTS=--apis=rest,xmpp/g" $JVB_ETC_CONFIG