Update entrypoint-tmserver.sh

This commit is contained in:
ryluth 2019-09-27 11:01:03 +02:00 committed by GitHub
parent 931fd0d989
commit a9fb55153c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -8,6 +8,9 @@ if [[ "$(id -u)" = "0" ]]; then
exec su-exec trackmania "$0" exec su-exec trackmania "$0"
fi fi
# Change dir to /opt/tmserver
cd /opt/tmserver
# Evaluate all the available environment variables # Evaluate all the available environment variables
if [[ -z "${SERVER_LOGIN}" ]]; then if [[ -z "${SERVER_LOGIN}" ]]; then
echo "Server account login is missing. Server cannot start." echo "Server account login is missing. Server cannot start."
@ -102,7 +105,7 @@ echo "Substition in config files"
#Trackmania Files #Trackmania Files
envsubst > GameData/Config/config.txt < GameData/Config/_config.txt envsubst < GameData/Config/_config.txt > GameData/Config/config.txt
envsubst > GameData/Config/playlist.txt < GameData/Config/_playlist.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"