From d89de80db8e1919969c18496d6202dceed40f79b Mon Sep 17 00:00:00 2001 From: Larry Wright Date: Thu, 7 Jul 2016 09:17:13 -0500 Subject: [PATCH] Update start-minecraft.sh Each time this script is run it downloads the modpack if one is specified. When it tries to unzip the file, if the files already exist in the plugins directory, the script will hang indefinitely because unzip asks for confirmation that you want to overwrite the existing files. Adding -o to the unzip command will tell it to overwrite the files. I suspect the world download has the same issue, but I don't use that and so can't really test it. --- minecraft-server/start-minecraft.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index 9f6426a6..271dedaa 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -216,10 +216,10 @@ case "X$MODPACK" in wget -q -O /tmp/modpack.zip "$MODPACK" if [ "$TYPE" = "SPIGOT" ]; then mkdir -p /data/plugins - unzip -d /data/plugins /tmp/modpack.zip + unzip -o -d /data/plugins /tmp/modpack.zip else mkdir -p /data/mods - unzip -d /data/mods /tmp/modpack.zip + unzip -o -d /data/mods /tmp/modpack.zip fi rm -f /tmp/modpack.zip ;;