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

This commit is contained in:
damencho 2015-09-09 15:15:09 -05:00
parent 68421465a7
commit 5a254ba949
1 changed files with 8 additions and 1 deletions

View File

@ -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