2018-06-15 21:21:03 +08:00
|
|
|
#!/bin/bash -xe
|
|
|
|
|
2019-02-05 01:49:30 +08:00
|
|
|
export JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -DbigbluebuttonSalt=$BIGBLUEBUTTON_SHARED_SECRET -DbigbluebuttonURL=$BIGBLUEBUTTON_URL -DltiEndPoint=$LTI_ENDPOINT -DltiConsumers=$LTI_CONSUMERS -DltiAllRecordedByDefault=$RECORDED_BY_DEFAULT -DltiCanvasPlacements=$LTI_CANVAS_PLACEMENTS -DltiCanvasPlacementName=$LTI_CANVAS_PLACEMENT_NAME"
|
2018-06-15 21:21:03 +08:00
|
|
|
sed -i "s|^securerandom\.source=.*|securerandom.source=file:/dev/./urandom|g" $JAVA_HOME/lib/security/java.security
|
|
|
|
|
2019-02-05 01:49:30 +08:00
|
|
|
if [ -f webapps/lti.war ]; then
|
|
|
|
mkdir -p webapps/$LTI_CONTEXT_PATH
|
|
|
|
unzip -q webapps/lti.war -d webapps/$LTI_CONTEXT_PATH
|
|
|
|
rm webapps/lti.war
|
|
|
|
fi
|
|
|
|
|
2018-06-15 21:21:03 +08:00
|
|
|
catalina.sh run
|
|
|
|
|