Skip to content

Commit 73371c0

Browse files
committed
Updated entrypoint to copy licence from /opt when deployed using AWS lambda layers
1 parent ee8ead6 commit 73371c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wolfram/entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
BASE_LICENCE_FILE=/opt/WolframEngine/Configuration/Licensing/mathpass
4+
if [ -f "$BASE_LICENCE_FILE" ]; then
5+
mkdir /home/wolframengine/.WolframEngine/Licensing/
6+
cp $BASE_LICENCE_FILE /home/wolframengine/.WolframEngine/Licensing/mathpass
7+
fi
8+
39
# Exit immediately if a command exits with a non-zero status.
410
set -e
511

0 commit comments

Comments
 (0)