Merge pull request #429 from ffdixon/check-updates
Added support for client system check in bbb-conf
This commit is contained in:
commit
49e553d160
23
bigbluebutton-config/bin/bbb-conf
Executable file → Normal file
23
bigbluebutton-config/bin/bbb-conf
Executable file → Normal file
@ -1123,6 +1123,16 @@ check_state() {
|
||||
echo
|
||||
fi
|
||||
|
||||
if [ -f /var/www/bigbluebutton/check/conf/config.xml ]; then
|
||||
CHECK_HOST=$(cat /var/www/bigbluebutton/check/conf/config.xml | grep "<uri>rtmp" | head -1 | sed 's/.*rtmp:\/\///g' | sed 's/\/.*//g' | tr -d '\015')
|
||||
echo "# Warning: The client self check is installed and accessible from:"
|
||||
echo "#"
|
||||
echo "# http://$CHECK_HOST/check"
|
||||
echo "#"
|
||||
echo
|
||||
|
||||
fi
|
||||
|
||||
if [ -f ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties ]; then
|
||||
LTI_URL='http://'$(cat ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties | sed -n '/^ltiEndPoint/{s/^.*=//;p}')'/lti/tool'
|
||||
echo "# Warning: The IMS Learning Tools Integration (LTI) is accessible from:"
|
||||
@ -1234,6 +1244,13 @@ if [ $CHECK ]; then
|
||||
echo " api url: $LTI_URL"
|
||||
fi
|
||||
|
||||
if [ -f /var/www/bigbluebutton/check/conf/config.xml ]; then
|
||||
CHECK_URL=$(cat /var/www/bigbluebutton/check/conf/config.xml | grep "<uri>rtmp" | head -1 | sed 's/.*rtmp:\/\///g' | sed 's/\/.*//g' | tr -d '\015')
|
||||
echo
|
||||
echo "/var/www/bigbluebutton/check/conf/config.xml (client check)"
|
||||
echo " client check: $CHECK_URL"
|
||||
fi
|
||||
|
||||
CONFERENCING_MODULE="FreeSWITCH"
|
||||
|
||||
echo
|
||||
@ -1473,6 +1490,12 @@ if [ -n "$HOST" ]; then
|
||||
done
|
||||
echo
|
||||
|
||||
if [ -f /var/www/bigbluebutton/check/conf/config.xml ]; then
|
||||
echo "Assigning $HOST for client self check to /var/www/bigbluebutton/check/conf/config.xml"
|
||||
sed -i "s/rtmp:\/\/\([^\"\/]*\)\//rtmp:\/\/$HOST\//g" /var/www/bigbluebutton/check/conf/config.xml
|
||||
sed -i "s/rtmpt:\/\/\([^\"\/]*\)\//rtmpt:\/\/$HOST\//g" /var/www/bigbluebutton/check/conf/config.xml
|
||||
fi
|
||||
|
||||
echo "Restarting the bigbluebutton server ..."
|
||||
stop_bigbluebutton
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user