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:
parent
68421465a7
commit
5a254ba949
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue