2018-09-19 21:16:51 +02:00
|
|
|
#!/bin/bash
|
2018-09-20 00:24:33 +02:00
|
|
|
|
2018-09-25 16:18:01 +02:00
|
|
|
sleep 5s
|
2018-09-19 21:16:51 +02:00
|
|
|
echo "starting entrypoint.sh"
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
2018-09-25 16:18:01 +02:00
|
|
|
|
|
|
|
cd "$STEAM_PATH"
|
|
|
|
|
2018-09-25 12:35:39 +02:00
|
|
|
parms="-game garrysmod +gamemode terrortown "$(printf "%s " "$@")
|
|
|
|
echo "starting with $parms"
|
2018-09-25 16:18:01 +02:00
|
|
|
|
|
|
|
ls -lA
|
|
|
|
|
|
|
|
if [ -e "${STEAM_PATH}/gmodserver" ]; then
|
|
|
|
./gmodserver update-lgsm
|
|
|
|
./gmodserver update
|
|
|
|
else
|
|
|
|
bash linuxgsm.sh gmodserver
|
|
|
|
./gmodserver auto-install
|
|
|
|
fi
|
|
|
|
|
2018-09-19 21:16:51 +02:00
|
|
|
|
2018-09-25 12:25:21 +02:00
|
|
|
trap './home/steam/gmodserver stop' SIGTERM
|
2018-09-25 16:18:01 +02:00
|
|
|
./gmodserver start
|
|
|
|
./gmodserver console
|
2018-09-23 10:13:04 +02:00
|
|
|
wait "$!"
|