From 711c0bbe9feac0c675a1fe748abb38ac5873d7da Mon Sep 17 00:00:00 2001 From: restitux Date: Wed, 14 Sep 2022 14:13:59 -0600 Subject: [PATCH] Add compatbility support for old mumble.sqlite db --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 0868379..b921db7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -98,6 +98,14 @@ else # Apply default settings if they're missing + # Compatibilty with old DB filename + OLD_DB_FILE="${DATA_DIR}/murmur.sqlite" + if [[ -f "$OLD_DB_FILE" ]]; then + set_config "database" "$OLD_DB_FILE" true + else + set_config "database" "${DATA_DIR}/mumble-server.sqlite" true + fi + 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