updates to version handleing
Build and Push foundryvtt Docker Image / build (push) Successful in 57s
Build and Push foundryvtt Docker Image / generate-changelogs (push) Successful in 6s
Build and Push foundryvtt Docker Image / generate-build-info (push) Successful in 6s

This commit is contained in:
2026-08-02 08:05:39 -07:00
parent f2f33b3316
commit 2eda7cb07d
+9 -11
View File
@@ -1,35 +1,33 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2018 fithwum # Copyright (c) 2026 fithwum
# All rights reserved # All rights reserved
# Variables. # Variables.
FVTT_VERSION=14.365 MARKER_FILE=/foundry/fvtt/version-$FOUNDRYVTT_VERSION
FOUNDRY_VERSION=$(curl -fsSL https://foundryvtt.com/releases | sed -n 's/.*Release \([0-9][0-9]*\.[0-9][0-9]*\).*/\1/p' | head -1)
echo " " echo " "
echo "INFO ! Current FoundryVTT Release version is ${FVTT_VERSION}." echo "INFO ! Current FoundryVTT Release version is $FOUNDRY_VERSION."
# Set permissions. # Set permissions.
mkdir -p /foundry/fvtt /foundry/data mkdir -p /foundry/fvtt /foundry/data
sleep 1 if [ ! -e "$MARKER_FILE" ];
if [ ! -e /foundry/version-${FOUNDRYVTT_VERSION} ];
then then
echo "INFO ! Setting permissions for new/updated files" echo "INFO ! Setting permissions for new/updated files"
find /foundry \! -perm 776 -exec chmod 776 {} \; find /foundry \! -perm 776 -exec chmod 776 {} \;
# find /foundry \! -user 99 -exec chown 99 {} \; # find /foundry \! -user 99 -exec chown 99 {} \;
# find /foundry \! -group 100 -exec chgrp 100 {} \; # find /foundry \! -group 100 -exec chgrp 100 {} \;
chmod +x /foundry/fvtt/resources/app/main.js chmod +x /foundry/fvtt/resources/app/main.js
rm -fr /foundry/version-* rm -fr /foundry/fvtt/version-*
touch /foundry/version-${FOUNDRYVTT_VERSION} touch $MARKER_FILE
else else
echo "INFO ! Starting Server" echo "INFO ! Starting Server"
fi fi
sleep 1
# Run. # Run.
echo "INFO ! Starting FoundryVTT Server ${FOUNDRYVTT_VERSION}" echo "INFO ! Starting FoundryVTT Server $FOUNDRYVTT_VERSION"
echo " " echo " "
# exec node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data # exec node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data
su foundry -c 'node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data --ignore-gpu-blacklist' su foundry -c 'node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data --ignore-gpu-blacklist'