From f5bb52b94600943f8e7a164dbaa4ab0d928deb82 Mon Sep 17 00:00:00 2001 From: fithwum <34775371+fithwum@users.noreply.github.com> Date: Wed, 1 Jul 2020 21:07:40 -0700 Subject: [PATCH] Update Install_Script.sh --- files/Install_Script.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/Install_Script.sh b/files/Install_Script.sh index fd21cd3..75a17a4 100644 --- a/files/Install_Script.sh +++ b/files/Install_Script.sh @@ -12,6 +12,7 @@ CHANGELOG=/MCserver/minecraft_server_${MC_VERSION}.jar # Check for files in /MCserver and download/create if needed. if [ -e "${CHANGELOG}" ] then + echo " " echo "INFO ! minecraft server found starting server." else echo " " @@ -23,6 +24,15 @@ if [ -e "${CHANGELOG}" ] wget --no-cache https://raw.githubusercontent.com/fithwum/minecraft/master/files/run.sh -O /MCserver/run.sh sleep 1 fi +if [ -e /MCserver/run.sh ] + then + echo " " + echo "INFO ! run.sh found ... will not download." + else + echo " " + echo "WARNING ! run.sh not found ... will download new copy." + wget --no-cache https://raw.githubusercontent.com/fithwum/minecraft/master/scripts/run.sh -O /MCserver/run.sh +fi sleep 1