From 07fc31b401a99eb0b0d6b0e862196b1e497af2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20K=C3=A5gstr=C3=B6m?= Date: Fri, 24 Aug 2018 17:36:41 +0200 Subject: [PATCH] unzip fails if a file already exists in the zip file. Unzipping world replace banned-ips.json? [y]es, [n]o, [A]ll, [N]one, [r]ename: unzip: can't read standard input --- minecraft-server/start-finalSetup01World | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft-server/start-finalSetup01World b/minecraft-server/start-finalSetup01World index 1dac353d..667ed542 100755 --- a/minecraft-server/start-finalSetup01World +++ b/minecraft-server/start-finalSetup01World @@ -7,7 +7,7 @@ case "X$WORLD" in echo "Downloading world from $WORLD" curl -sSL -o - "$WORLD" > /data/world.zip echo "Unzipping world" - unzip -q /data/world.zip + unzip -o -q /data/world.zip rm -f /data/world.zip if [ ! -d /data/world ]; then echo World directory not found