From 6bac2b5b3e93c6042d5c64d6703e67f9867f0992 Mon Sep 17 00:00:00 2001 From: Mirror Date: Mon, 6 May 2024 18:48:02 +0300 Subject: [PATCH] changes --- compose.yaml | 7 ++++--- prepare_environment.sh | 1 + startserver.sh | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) 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