#!/bin/sh echo "Starting apache server" service apache2 start echo "Setting ENV/ARG variables" sed -i "s/SuperAdmin/${SERVER_SA_PASSWORD}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt sed -i "s/Admin/${SERVER_ADM_PASSWORD}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt sed -i "s/${SERVER_NAME}${SERVER_DESC}False/True/" /opt/tmserver/GameData/Config/dedicated_cfg.txt echo "Server config dedicated_cfg.txt is" cat /opt/tmserver/GameData/Config/dedicated_cfg.txt echo "Launching Server" exec ./TrackmaniaServer /dedicated_cfg=dedicated_cfg.txt /game_settings=MatchSettings/custom_game_settings.txt /nodaemon /lan