prophunt-garrysmod/entrypoint.sh

27 lines
674 B
Bash
Raw Normal View History

#!/bin/bash
echo "starting entrypoint.sh"
set -e
echo "installing / updating steamcmd in $STEAM_PATH"
cd "$STEAM_PATH"
wget -q -O - "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar -zxvf -
echo "testing steamcmd"
2018-09-22 21:00:34 +02:00
./steamcmd.sh -noasync +login anonymous +quit
echo "installing / validating ttt"
cd "$STEAM_PATH"
2018-09-22 21:05:00 +02:00
./steamcmd.sh -noasync +login anonymous +force_install_dir "$STEAM_PATH/server/" +app_update 4020 validate +quit
# todo catch => send killserver / quit
cd "$STEAM_PATH/server/"
trap 'pkill -15 srcds_run' SIGTERM
2018-09-19 23:22:05 +02:00
2018-09-22 21:05:00 +02:00
#-console -game garrysmod +gamemode terrortown
2018-09-23 10:13:04 +02:00
echo "starting with"
echo "$@"
echo $@
2018-09-22 21:05:00 +02:00
./srcds_run "$@" &
2018-09-23 10:13:04 +02:00
wait "$!"