Update wsUrl for settings.yml
This commit is contained in:
parent
591adc89e6
commit
1ca0a251f4
14
bigbluebutton-config/bin/bbb-conf
Executable file → Normal file
14
bigbluebutton-config/bin/bbb-conf
Executable file → Normal file
@ -80,6 +80,7 @@ FREESWITCH_PID=/opt/freeswitch/run/freeswitch.pid
|
||||
FREESWITCH_EVENT_SOCKET=/opt/freeswitch/conf/autoload_configs/event_socket.conf.xml
|
||||
|
||||
HTML5_CONFIG=/usr/share/meteor/bundle/programs/server/assets/app/config/settings-production.json
|
||||
HTML5_CONFIG_NEW=/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
|
||||
|
||||
if [ -f /etc/redhat-release ]; then
|
||||
DISTRIB_ID=centos
|
||||
@ -279,9 +280,10 @@ comment () {
|
||||
}
|
||||
|
||||
change_yml_value () {
|
||||
sed -i "s<^[[:blank:]#]*\(${2}\):[ ].*<\1: ${3}<" $1
|
||||
sed -i "s<^\([[:blank:]#]*\)\(${2}\): .*<\1\2: ${3}<" $1
|
||||
}
|
||||
|
||||
|
||||
# comment lines matching $2 ($1 is the file)
|
||||
uncomment () {
|
||||
check_and_backup $1
|
||||
@ -1911,6 +1913,16 @@ if [ -n "$HOST" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f $HTML5_CONFIG_NEW ]; then
|
||||
WS=$(cat $SERVLET_DIR/bigbluebutton/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}' | sed 's/https/wss/g' | sed s'/http/ws/g')
|
||||
|
||||
change_yml_value $HTML5_CONFIG_NEW wsUrl "$WS/bbb-webrtc-sfu"
|
||||
|
||||
if [ -f /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml ]; then
|
||||
change_yml_value /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml kurentoUrl "ws://$HOST:8888/kurento"
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# Update thumbnail links
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user