5326c8b473
Build foundry vtt docker image and push to registry / docker (push) Successful in 48s
testing for existence of newer foundry main.js in different location in v13 and higher
18 lines
476 B
Bash
18 lines
476 B
Bash
#!/bin/sh
|
|
|
|
# set umask
|
|
umask ${UMASK}
|
|
|
|
# set permissions on application folder
|
|
chown -R ${PUID}:${PGID} /foundry
|
|
|
|
# set default main.js path as used in v12 and earlier
|
|
FOUNDRY_MAIN_PATH=/foundry/resources/app/main.js
|
|
|
|
# check for newer path used in v13 and newer
|
|
if [ -e /foundry/main.js]; then
|
|
FOUNDRY_MAIN_PATH=/foundry/main.js
|
|
fi
|
|
|
|
# run Foundry with the environmentally set user and group id
|
|
exec su-exec ${PUID}:${PGID} node $FOUNDRY_MAIN_PATH --dataPath=/foundrydata |