Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Uses jvb config file from the new location. Fixes a problem where reconfiguring can break package installation due to missing jvb config file.

damencho5a254ba949f1
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