update & code cleanup
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 12s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Successful in 17s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-neoforged (push) Successful in 23s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Successful in 1m20s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Successful in 1m17s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Successful in 1m48s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 1m23s
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Successful in 9s
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Successful in 18s

This commit is contained in:
2025-12-18 14:12:58 -08:00
parent dca4bf27c7
commit 4a0cb740cc

View File

@@ -2,15 +2,6 @@
# Copyright (c) 2022 fithwum
# 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
[ ! -f $BOOTSTRAP_MARKER ] && FIRST_RUN=true
MC_DIR=/MCserver
# Main Install Links
@@ -101,32 +92,6 @@ sleep 1
echo " "
echo "INFO ! Starting Minecraft Server $NEOFORGED_VERSION"
cd $MC_DIR
# exec ./run-$NEOFORGED_VERSION.sh nogui
# if [ "$FIRST_RUN" = "true" ]; then
# echo "INFO ! First bootstrap run"
# ./run-${NEOFORGED_VERSION}.sh
# echo "INFO ! Bootstrap complete"
# touch $BOOTSTRAP_MARKER
# else
# exec ./run-${NEOFORGED_VERSION}.sh nogui
# fi
if [ "$FIRST_RUN" = "true" ]; then
echo "INFO ! First bootstrap run (datapack generation)"
./run-${NEOFORGED_VERSION}.sh
BOOTSTRAP_RC=$?
if [ $BOOTSTRAP_RC -ne 0 ]; then
echo "ERROR ! Bootstrap failed (exit code $BOOTSTRAP_RC)"
echo "ERROR ! World/datapacks are incomplete"
exit 1
fi
echo "INFO ! Bootstrap complete"
touch $BOOTSTRAP_MARKER
else
exec ./run-${NEOFORGED_VERSION}.sh nogui
fi
exec ./run-$NEOFORGED_VERSION.sh nogui
exit