cleanup and function updates
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 neoforged (push) Successful in 21s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Successful in 1m2s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push bukkit (push) Successful in 1m6s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Successful in 15s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-forge (push) Successful in 19s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Successful in 14s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-bukkit (push) Successful in 1m19s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 13s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push forge (push) Successful in 2m15s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-neoforged (push) Successful in 1m30s
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 1m58s

This commit is contained in:
2025-12-19 07:42:58 -08:00
parent 15c8ad9a1e
commit bd54c3c2c7
11 changed files with 128 additions and 164 deletions

View File

@@ -6,8 +6,6 @@
SERVER_FILE=https://meta.fabricmc.net/v2/versions/loader/$MC_VERSION/$FABRIC_VERSION/$INSTALLER_VERSION/server/jar
MC_RUN_FILE=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/fabric/run.sh
rm -fr /MCserver/run_*.sh
# Main install (Debian).
# Check for server files and download if needed.
if [ -e /MCserver/fabric-$MC_VERSION-$FABRIC_VERSION.jar ]
@@ -25,8 +23,6 @@ if [ -e /MCserver/fabric-$MC_VERSION-$FABRIC_VERSION.jar ]
chmod +x /MCserver/fabric-$MC_VERSION-$FABRIC_VERSION.jar
fi
sleep 1
# Looking for run.sh
if [ -e /MCserver/run-$MC_VERSION.sh ]
then
@@ -40,6 +36,11 @@ if [ -e /MCserver/run-$MC_VERSION.sh ]
chmod +x /MCserver/run-$MC_VERSION.sh
fi
echo "INFO ! Setting game port."
if [ -f $MC_DIR/server.properties ]; then
sed -i '/server-port='*'/c\server-port='$GAME_PORT'' $MC_DIR/server.properties
fi
# Check for EULA
if [ ! -f /MCserver/eula.txt ]; then
:
@@ -55,8 +56,6 @@ else
fi
fi
sleep 1
if [ ! -f /MCserver/eula.txt ]; then
echo " "
echo "WARNING ! EULA not found please stand by..."
@@ -81,11 +80,6 @@ else
echo "WARNING ! Something went wrong, please check EULA variable"
fi
sleep 1
echo "INFO ! Setting game port."
sed -i '/server-port='*'/c\server-port='$GAME_PORT'' /MCserver/server.properties
sleep 1
# Set permissions.
chown 99:100 -R /MCserver
chmod 777 -R /MCserver