|
@@ -0,0 +1,16 @@
|
|
1
|
+#!/bin/sh
|
|
2
|
+
|
|
3
|
+sudo apt-get -y update
|
|
4
|
+sudo apt-get -y dist-upgrade
|
|
5
|
+
|
|
6
|
+if [ -f /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties ]; then
|
|
7
|
+ SERVLET_DIR=/usr/share/bbb-web
|
|
8
|
+else
|
|
9
|
+ SERVLET_DIR=/var/lib/tomcat7/webapps/bigbluebutton
|
|
10
|
+fi
|
|
11
|
+
|
|
12
|
+BBB_WEB_URL=$(cat ${SERVLET_DIR}/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}')
|
|
13
|
+RESULT=$(echo $BBB_WEB_URL | awk 'sub(/^.{8}/,"")')
|
|
14
|
+
|
|
15
|
+`bbb-conf --setip $RESULT`
|
|
16
|
+`bbb-conf --restart`
|