diff --git a/neoforged/Install_Script.sh b/neoforged/Install_Script.sh index 593922c..4d513a0 100644 --- a/neoforged/Install_Script.sh +++ b/neoforged/Install_Script.sh @@ -9,6 +9,18 @@ MC_RUN_FILE=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/neofo # Main install (Debian). # Check for server files and download if needed. +if [ -e /MCserver/run-$NEOFORGED_VERSION.sh ] + then + echo " " + echo "INFO ! run-$NEOFORGED_VERSION.sh found ... will use existing file." + else + echo " " + echo "WARNING ! run-$NEOFORGED_VERSION.sh is out of date/missing ... will download now." + rm -fr /MCserver/run-*.sh + wget --no-cache --show-progress --progress=bar:force:noscroll $MC_RUN_FILE -O /MCserver/run-$NEOFORGED_VERSION.sh + chmod +x /MCserver/run-$NEOFORGED_VERSION.sh +fi + if [ -e /MCserver/neoforge-$NEOFORGED_VERSION-beta-installer.jar ] then echo " " @@ -23,8 +35,8 @@ if [ -e /MCserver/neoforge-$NEOFORGED_VERSION-beta-installer.jar ] 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 - mv run.sh run-$NEOFORGED_VERSION.sh - chmod +x run-$NEOFORGED_VERSION.sh + # mv run.sh run-$NEOFORGED_VERSION.sh + # chmod +x run-$NEOFORGED_VERSION.sh cd .. fi @@ -46,18 +58,6 @@ fi sleep 1 -# Looking for run.sh -# if [ -e /MCserver/run-$NEOFORGED_VERSION.sh ] -# then -# echo " " -# echo "INFO ! run-$NEOFORGED_VERSION.sh found ... will use existing file." -# else -# echo " " -# echo "WARNING ! run-$NEOFORGED_VERSION.sh is out of date/missing ... will download now." -# rm -fr /MCserver/run-*.sh -# wget --no-cache --show-progress --progress=bar:force:noscroll $MC_RUN_FILE -O /MCserver/run-$NEOFORGED_VERSION.sh -# fi - # Check for EULA if [ ! -f /MCserver/eula.txt ]; then :