bbb-lti: Updated bbb-conf to fix issue with re-installations
This commit is contained in:
parent
0851da3306
commit
ecdcc45d9b
@ -1107,7 +1107,7 @@ check_state() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties ]; then
|
if [ -f ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties ]; then
|
||||||
LTI_URL=$(cat ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties | sed -n '/^ltiEndPoint/{s/^.*=//;p}')
|
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:"
|
echo "# Warning: The IMS Learning Tools Integration (LTI) is accessible from:"
|
||||||
echo "#"
|
echo "#"
|
||||||
echo "# $LTI_URL"
|
echo "# $LTI_URL"
|
||||||
@ -1428,7 +1428,7 @@ if [ -n "$HOST" ]; then
|
|||||||
echo "Assigning $HOST for LTI integration in ${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties"
|
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" \
|
sed -i "s/bigbluebuttonURL=http:\/\/.*/bigbluebuttonURL=http:\/\/$HOST\/bigbluebutton/g" \
|
||||||
${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties
|
${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties
|
||||||
sed -i "s/ltiEndPoint=localhost/ltiEndPoint=$HOST/g" \
|
sed -i "s/ltiEndPoint=.*/ltiEndPoint=$HOST/g" \
|
||||||
${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties
|
${SERVLET_DIR}/lti/WEB-INF/classes/lti.properties
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user