From 2fd60e3407524bac412a808e41616301b1344025 Mon Sep 17 00:00:00 2001 From: restitux Date: Thu, 15 Sep 2022 15:06:35 -0600 Subject: [PATCH] Don't set welcometext if welcometextfile is set --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b921db7..f5cc2a8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -108,7 +108,11 @@ else set_config "database" "${DATA_DIR}/mumble-server.sqlite" true set_config "ice" "\"tcp -h 127.0.0.1 -p 6502\"" true - set_config "welcometext" "\"
Welcome to this server, running the official Mumble Docker image.
Enjoy your stay!
\"" true + + if ! array_contains "used_configs" "welcometextfile"; then + set_config "welcometext" "\"
Welcome to this server, running the official Mumble Docker image.
Enjoy your stay!
\"" true + fi + set_config "port" 64738 true set_config "users" 100 true