prophunt-garrysmod/entrypoint.sh

32 lines
747 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
2018-09-25 11:01:59 +02:00
# fix steamcmd error
ln -s "${STEAM_PATH}/linux32/steamclient.so" ~/.steam/sdk32/steamclient.so
# 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-23 10:13:04 +02:00
echo "starting with"
2018-09-25 11:01:59 +02:00
for var in "$@"
do
echo "$var"
done
2018-09-22 21:05:00 +02:00
./srcds_run "$@" &
2018-09-23 10:13:04 +02:00
wait "$!"