test
vintage-story-build-latest / Docker prune (vm-docker-build2) (push) Successful in 3s
vintage-story-build-latest / poll-debian-base-and-detect-changes (push) Successful in 6s
vintage-story-build-latest / Build and Push latest (push) Successful in 29s
vintage-story-build-latest / generate-changelogs (push) Successful in 12s
vintage-story-build-latest / generate-build-info (push) Successful in 11s

This commit is contained in:
2026-07-28 10:52:18 -07:00
parent 8b9151a579
commit 226352c379
+12 -2
View File
@@ -6,6 +6,7 @@ MARKER_FILE=$VS_SERVER_DIR/.setup_done
VS_SERVER_DIR=/vs_server/server
VS_DATA_DIR=/vs_server/server/data
START_FILE=$VS_SERVER_DIR/server-$VS_VERSION.sh
LOG_FILE=$VS_DATA_DIR/Logs/server-main.log
VS_SERVER_FILE=https://cdn.vintagestory.at/gamefiles/$VS_CHANNEL/vs_server_linux-x64_$VS_VERSION.tar.gz
MS_REPO_URL=https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
USERNAME=adduser vintagestory
@@ -100,7 +101,16 @@ fi
# Run vintage-story server.
echo " "
echo "INFO ! Starting vintage-story Server $VS_VERSION"
echo "Tailing server log to keep container active..."
exec $VS_SERVER_DIR/server-$VS_VERSION.sh start && exec tail -F $VS_DATA_DIR/Logs/server-main.log
exec $VS_SERVER_DIR/server-$VS_VERSION.sh start
echo "Waiting for the server log file to be created..."
# Loop indefinitely until the log file actually exists on disk
until [ -f "$LOG_FILE" ]; do
sleep 1
done
echo "Log file found! Streaming server console now..."
# Hand off PID 1 to tail, keeping the container active permanently
exec tail -f "$LOG_FILE"
exit