Merge pull request #6738 from bigbluebutton/ffdixon-patch-2

Properly update API demos with correct path
This commit is contained in:
Fred Dixon 2019-02-07 18:40:24 -07:00 committed by GitHub
commit 4baec1290c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1930,15 +1930,15 @@ if [ -n "$HOST" ]; then
/usr/share/bbb-apps-akka/conf/application.conf
fi
#
# Update api demos
#
#
# Update api demos
#
if [ -f /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp ]; then
echo "Assigning $HOST for api demos in /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp"
$SUDO sed -i "s/BigBlueButtonURL = \"http[s]*:\/\/\([^\"\/]*\)\([\"\/]\)/BigBlueButtonURL = \"$PROTOCOL_HTTP:\/\/$HOST\2/g" \
/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp
fi
if [ -f ${SERVLET_DIR}/demo/bbb_api_conf.jsp ]; then
echo "Assigning $HOST for api demos in ${SERVLET_DIR}/demo/bbb_api_conf.jsp"
$SUDO sed -i "s/BigBlueButtonURL = \"http[s]*:\/\/\([^\"\/]*\)\([\"\/]\)/BigBlueButtonURL = \"$PROTOCOL_HTTP:\/\/$HOST\2/g" \
${SERVLET_DIR}/demo/bbb_api_conf.jsp
fi
if [ -f ${SERVLET_DIR}/lti/WEB-INF/classes/lti-config.properties ]; then