test
Some checks failed
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 11s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Successful in 21s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Successful in 25s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Successful in 1m21s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-neoforged (push) Successful in 1m25s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 1m20s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Successful in 1m37s
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Successful in 8s
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Has been cancelled

This commit is contained in:
2025-12-18 10:09:01 -08:00
parent 3f2f3ef38e
commit 152b212fd5

View File

@@ -2,10 +2,14 @@
# Copyright (c) 2022 fithwum # Copyright (c) 2022 fithwum
# All rights reserved # All rights reserved
# FIRST_RUN=false
# if [ ! -f "$MC_DIR/world/level.dat" ]; then
# FIRST_RUN=true
# fi
BOOTSTRAP_MARKER="$MC_DIR/.neoforge_bootstrap_complete"
FIRST_RUN=false FIRST_RUN=false
if [ ! -f "$MC_DIR/world/level.dat" ]; then [ ! -f "$BOOTSTRAP_MARKER" ] && FIRST_RUN=true
FIRST_RUN=true
fi
MC_DIR=/MCserver MC_DIR=/MCserver
@@ -99,9 +103,18 @@ echo "INFO ! Starting Minecraft Server $NEOFORGED_VERSION"
cd $MC_DIR cd $MC_DIR
# exec ./run-$NEOFORGED_VERSION.sh nogui # exec ./run-$NEOFORGED_VERSION.sh nogui
# if [ "$FIRST_RUN" = "true" ]; then
# echo "INFO ! First bootstrap run (datapack generation)"
# "./run-${NEOFORGED_VERSION}.sh"
# else
# exec "./run-${NEOFORGED_VERSION}.sh" nogui
# fi
if [ "$FIRST_RUN" = "true" ]; then if [ "$FIRST_RUN" = "true" ]; then
echo "INFO ! First bootstrap run (datapack generation)" echo "INFO ! First bootstrap run"
"./run-${NEOFORGED_VERSION}.sh" "./run-${NEOFORGED_VERSION}.sh"
echo "INFO ! Bootstrap complete"
touch "$BOOTSTRAP_MARKER"
else else
exec "./run-${NEOFORGED_VERSION}.sh" nogui exec "./run-${NEOFORGED_VERSION}.sh" nogui
fi fi