diff --git a/debian/jitsi-meet.postinst b/debian/jitsi-meet.postinst index 794cb124a..125978243 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