From a9fb55153cf0607f136cae143a2d9cc8978d207c Mon Sep 17 00:00:00 2001 From: ryluth <38672086+ryluth@users.noreply.github.com> Date: Fri, 27 Sep 2019 11:01:03 +0200 Subject: [PATCH] Update entrypoint-tmserver.sh --- docker-tmserver/entrypoint-tmserver.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-tmserver/entrypoint-tmserver.sh b/docker-tmserver/entrypoint-tmserver.sh index 9c32959..7c242de 100755 --- a/docker-tmserver/entrypoint-tmserver.sh +++ b/docker-tmserver/entrypoint-tmserver.sh @@ -8,6 +8,9 @@ if [[ "$(id -u)" = "0" ]]; then exec su-exec trackmania "$0" fi +# Change dir to /opt/tmserver +cd /opt/tmserver + # Evaluate all the available environment variables if [[ -z "${SERVER_LOGIN}" ]]; then echo "Server account login is missing. Server cannot start." @@ -102,7 +105,7 @@ echo "Substition in config files" #Trackmania Files -envsubst > GameData/Config/config.txt < GameData/Config/_config.txt -envsubst > GameData/Config/playlist.txt < GameData/Config/_playlist.txt +envsubst < GameData/Config/_config.txt > GameData/Config/config.txt +envsubst < GameData/Config/_playlist.txt > GameData/Config/playlist.txt -exec "/opt/tmserver/TrackmaniaServer" "/nodaemon" "/internet" "/game_settings=MatchSettings/playlist.txt" "/dedicated_cfg=config.txt" +exec "./TrackmaniaServer" "/nodaemon" "/internet" "/game_settings=MatchSettings/playlist.txt" "/dedicated_cfg=config.txt"