mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-15 18:37:57 +00:00
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..
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
worldDest=/data/$LEVEL
|
worldDest=/data/$LEVEL
|
||||||
|
|
||||||
# If supplied with a URL for a world, download it and unpack
|
# If no world exists and a URL for a world is supplied, download it and unpack
|
||||||
if [[ "$WORLD" ]]; then
|
if [[ "$WORLD" ]] && [! -d "$worldDest"]; then
|
||||||
case "X$WORLD" in
|
case "X$WORLD" in
|
||||||
X[Hh][Tt][Tt][Pp]*)
|
X[Hh][Tt][Tt][Pp]*)
|
||||||
echo "Downloading world from $WORLD"
|
echo "Downloading world from $WORLD"
|
||||||
|
|||||||
Reference in New Issue
Block a user