diff --git a/compose.yaml b/compose.yaml index b5ef96a..88349ec 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,8 +2,9 @@ services: minecraft: build: . volumes: - - data:/data + - ./data:/data ports: - "25565:25565" -volumes: - data: \ No newline at end of file +#volumes: +# data: + diff --git a/prepare_environment.sh b/prepare_environment.sh index 5e0e1cd..b89416d 100755 --- a/prepare_environment.sh +++ b/prepare_environment.sh @@ -23,6 +23,7 @@ if [ ! -f /app/.initialized ]; then ln -s /data/crash-reports . ln -s /data/local . ln -s /data/visualprospecting . + ln -s /data/backups . touch /app/.initialized fi diff --git a/startserver.sh b/startserver.sh index 3413f79..7ae1fab 100755 --- a/startserver.sh +++ b/startserver.sh @@ -1,2 +1,5 @@ #!/bin/sh -/app/prepare_environment.sh && java -Xms6G -Xmx6G -Dfml.readTimeout=180 @java9args.txt nogui + +if /app/prepare_environment.sh; then + exec java -Xms6G -Xmx6G -Dfml.readTimeout=180 -Dfml.queryResult=confirm @java9args.txt nogui +fi