From ca77b671feb22b1faed60c4d227f633c5708c7d9 Mon Sep 17 00:00:00 2001 From: "Christopher F." Date: Fri, 13 Sep 2024 01:08:16 +0000 Subject: [PATCH] Fix deprecation warning for SERVER_NAME showing up when TM_SERVER_NAME was set --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a7307e7..469bdff 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -116,20 +116,20 @@ if [ "$1" = './TrackmaniaServer' ]; then hostname=$(uname -n) if [ "$TM_SERVER_NAME_OVERWRITE" = true ]; then if [ "$TM_SERVER_NAME" ]; then - echo "SERVER_NAME will be removed soon. Please use TM_SERVER_NAME" echo "[-] Server name not present in config, using \"${TM_SERVER_NAME:-Docker TrackMania Server ${hostname}}\" as servername!" configs+=("'/dedicated/server_options/name' -v \"${TM_SERVER_NAME:-Docker TrackMania Server ${hostname}}\"") elif [ "$SERVER_NAME" ]; then + echo "SERVER_NAME will be removed soon. Please use TM_SERVER_NAME" echo "[-] Server name not present in config, using \"${SERVER_NAME:-Docker TrackMania Server ${hostname}}\" as servername!" configs+=("'/dedicated/server_options/name' -v \"${SERVER_NAME:-Docker TrackMania Server ${hostname}}\"") fi else if [ -z "$(xml sel -t -v '/dedicated/server_options/name' /server/UserData/Config/"${DC:-dedicated_cfg.txt}")" ]; then if [ "$TM_SERVER_NAME" ]; then - echo "SERVER_NAME will be removed soon. Please use TM_SERVER_NAME" echo "[-] Server name not present in config, using \"${TM_SERVER_NAME:-Docker TrackMania Server ${hostname}}\" as servername!" configs+=("'/dedicated/server_options/name' -v \"${TM_SERVER_NAME:-Docker TrackMania Server ${hostname}}\"") elif [ "$SERVER_NAME" ]; then + echo "SERVER_NAME will be removed soon. Please use TM_SERVER_NAME" echo "[-] Server name not present in config, using \"${SERVER_NAME:-Docker TrackMania Server ${hostname}}\" as servername!" configs+=("'/dedicated/server_options/name' -v \"${SERVER_NAME:-Docker TrackMania Server ${hostname}}\"") fi