Skip to content

Commit

Permalink
Added support in bbb-conf to change hostname for LTI integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ffdixon committed Oct 29, 2012
1 parent 453ad13 commit 83db16c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bigbluebutton-config/bin/bbb-conf
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ while [ $# -gt 0 ]; do
echo " Customer: $CUSTOMER"
echo " Secret: $SECRET"
echo
ICON_URL=$( echo $LTI_URL | sed 's/tool.xml/images\/favicon.ico/')
echo " Icon URL: $ICON_URL"
echo
echo
exit 0
fi
fi
Expand Down Expand Up @@ -1559,6 +1563,13 @@ if [ $CHECK ]; then
echo " api url: $API_IP"
fi

if [ -f ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties ]; then
LTI_URL=$(cat ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties | sed -n '/^bigbluebuttonURL/{s/.*http:\/\///;s/\/.*//;p}' | tr -d '\015')
echo
echo "${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties (LTI integration)"
echo " api url: $LTI_URL"
fi

if [ $VOICE_CONFERENCE == "bbb-voice-freeswitch.xml" ]; then
CONFERENCING_MODULE="FreeSWITCH"
else
Expand Down Expand Up @@ -1842,6 +1853,16 @@ if [ -n "$HOST" ]; then
${SERVLET_DIR}/demo/bbb_api_conf.jsp
fi


if [ -f ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties ]; then
echo "Assigning $HOST for LTI integration in ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties"
sed -i "s/bigbluebuttonURL=http:\/\/.*/bigbluebuttonURL=http:\/\/$HOST\/bigbluebutton/g" \
${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties
sed -i "s/ltiEndPoint=http:\/\/.*/ltiEndPoint=http:\/\/$HOST\/lti\/tool.xml/g" \
${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties
fi


if [ -f /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml ]; then
echo "Assigning $HOST for record and playback in /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml"
change_yml_value /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml $redis_host playback_host $HOST
Expand Down

0 comments on commit 83db16c

Please sign in to comment.