diff --git a/README.md b/README.md index 97fb2d3..6c1a155 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ wget https://raw.githubusercontent.com/BenjaminPrice/fvtt-docker/master/docker-c ### Step 2 - Download the Foundry VTT Zip File - Navigate to your User Profile page and find your Software Download Links on your license page. -- Download the `Linux` version. +- Download the `Node.js` version. - Save it to the same directory as the `docker-compose.yaml` file from the previous step. ### Step 3 - Create your data directory diff --git a/run-server.sh b/run-server.sh index 2f70e0d..f907458 100644 --- a/run-server.sh +++ b/run-server.sh @@ -1,7 +1,6 @@ #!/bin/sh -# look for a file name foundryvtt-.....zip or FoundryVTT...zip, copy it to -# /opt/foundryvtt, unzip and remove it. Then start the foundry app +set -e # Exit immediately on error cd /opt/foundryvtt || exit echo "Copying zip file..." @@ -10,9 +9,12 @@ find /host -type f -name '[f,F]oundry[vtt,VTT]*.zip' -exec cp '{}' . ';' echo "Unzipping..." unzip -o ./*.zip -d unpacked && rm ./*.zip -echo "Moving to mapped directory" +echo "Cleaning target app folder..." +rm -rf resources/app/* + +echo "Moving to mapped directory..." mv unpacked/* resources/app/ -echo "Starting node" +echo "Starting node..." cd resources/app -node main.mjs --dataPath=/data/foundryvtt \ No newline at end of file +exec node main.mjs --dataPath=/data/foundryvtt \ No newline at end of file