From d36966026c367640078c2c2e7f9da771c2d5a616 Mon Sep 17 00:00:00 2001 From: 0x7d8 Date: Sat, 14 Sep 2024 14:42:12 +0200 Subject: [PATCH] touch server.properties when eula file exists --- java/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/entrypoint.sh b/java/entrypoint.sh index 4369703..db7d1c8 100644 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -134,6 +134,11 @@ if [ -d "libraries/net/neoforged/forge" ] && [ ! -f "$SERVER_JARFILE" ]; then fi # server.properties +if [ -f "eula.txt" ]; then + # create server.properties + touch server.properties +fi + if [ -f "server.properties" ]; then # set server-ip to 0.0.0.0 if grep -q "server-ip=" server.properties; then