Skip to content

Commit

Permalink
Add compatbility support for old mumble.sqlite db
Browse files Browse the repository at this point in the history
  • Loading branch information
restitux committed Sep 14, 2022
1 parent 141af41 commit 711c0bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" "\"<br />Welcome to this server, running the official Mumble Docker image.<br />Enjoy your stay!<br />\"" true
Expand Down

0 comments on commit 711c0bb

Please sign in to comment.