From 3bac706b8ac8403a9af2f3c83f4004ee464fa8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20K=C3=A5gstr=C3=B6m?= Date: Sun, 7 Oct 2018 14:01:08 +0200 Subject: [PATCH] only download world if there is no preexisting world My world just got overwritten when i re-created the container. this should hopefully solve it.. --- minecraft-server/start-finalSetup01World | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minecraft-server/start-finalSetup01World b/minecraft-server/start-finalSetup01World index d6c526a1..aa37b843 100755 --- a/minecraft-server/start-finalSetup01World +++ b/minecraft-server/start-finalSetup01World @@ -2,8 +2,8 @@ worldDest=/data/$LEVEL -# If supplied with a URL for a world, download it and unpack -if [[ "$WORLD" ]]; then +# If no world exists and a URL for a world is supplied, download it and unpack +if [[ "$WORLD" ]] && [! -d "$worldDest"]; then case "X$WORLD" in X[Hh][Tt][Tt][Pp]*) echo "Downloading world from $WORLD"