test
All checks were successful
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 fabric (push) Successful in 18s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Successful in 21s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Successful in 18s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-neoforged (push) Successful in 1m8s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 1m8s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Successful in 1m31s
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) Successful in 30s

This commit is contained in:
2025-12-18 09:33:10 -08:00
parent ee7ecb7978
commit 8ff57b2ec2

View File

@@ -5,42 +5,31 @@
MC_DIR=/MCserver
# Main Install Links
INSTALLER_FILE=https://maven.neoforged.net/releases/net/neoforged/neoforge/$NEOFORGED_VERSION-beta/neoforge-$NEOFORGED_VERSION-beta-installer.jar
INSTALLER_FILE=https://maven.neoforged.net/releases/net/neoforged/neoforge/$NEOFORGED_VERSION/neoforge-$NEOFORGED_VERSION-installer.jar
SERVER_FILE=https://github.com/neoforged/ServerStarterJar/releases/download/$SERVER_VERSION/server.jar
MC_RUN_FILE=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/neoforged/run.sh
# Main install (Debian).
# Check for server files and download if needed.
if [ -e $MC_DIR/neoforge-$NEOFORGED_VERSION-beta-installer.jar ]
if [ -e $MC_DIR/neoforge-$NEOFORGED_VERSION-installer.jar ]
then
echo " "
echo "INFO ! neoforge-$NEOFORGED_VERSION-beta-installer.jar found starting now."
echo "INFO ! neoforge-$NEOFORGED_VERSION-installer.jar found starting now."
else
echo " "
echo "WARNING ! neoforge-$NEOFORGED_VERSION-beta-installer.jar is out of date/missing ... will download now."
echo "WARNING ! neoforge-$NEOFORGED_VERSION-installer.jar is out of date/missing ... will download now."
echo " "
echo "INFO ! Cleaning old files."
cd $MC_DIR
rm -fr neoforge-*.jar run-*.sh
wget --no-cache --show-progress --progress=bar:force:noscroll $INSTALLER_FILE -O neoforge-$NEOFORGED_VERSION-beta-installer.jar
chmod +x neoforge-$NEOFORGED_VERSION-beta-installer.jar
java -jar neoforge-$NEOFORGED_VERSION-beta-installer.jar --installServer
wget --no-cache --show-progress --progress=bar:force:noscroll $INSTALLER_FILE -O neoforge-$NEOFORGED_VERSION-installer.jar
chmod +x neoforge-$NEOFORGED_VERSION-installer.jar
java -jar neoforge-$NEOFORGED_VERSION-installer.jar --installServer
mv run.sh run-$NEOFORGED_VERSION.sh
chmod +x run-$NEOFORGED_VERSION.sh
cd ..
fi
sleep 1
# ---- EULA handling ----
# if [ "${ACCEPT_EULA:-false}" = "true" ]; then
# echo "eula=true" > eula.txt
# else
# echo "eula=false" > eula.txt
# echo "EULA not accepted. Set ACCEPT_EULA=true to start the server."
# sleep infinity
# fi
# Check for EULA
if [ ! -f $MC_DIR/eula.txt ]; then
: