prophunt-garrysmod/gmod/prepareServer.sh

24 lines
644 B
Bash
Raw Normal View History

2019-07-21 23:04:00 +02:00
#!/bin/sh
if [ "${DEBUGGING}" = "true" ]; then
set -o xtrace
fi
set -o errexit
set -o nounset
#./prepareServer.sh: 9: set: Illegal option -o pipefail
#set -o pipefail
2019-10-15 14:31:57 +02:00
# copy lgsm config
2019-07-29 21:51:34 +02:00
mkdir -p "/home/steam/lgsm/config-lgsm/gmodserver/"
2019-10-15 14:31:57 +02:00
cp -f "/home/common.cfg" "/home/steam/lgsm/config-lgsm/gmodserver/common.cfg" # common.cfg should be target, but is wrong, maybe a bug. (gmodserver working)
2019-07-29 21:51:34 +02:00
2019-07-21 23:04:00 +02:00
cd "/home"
echo "[prepareServer.sh]check configurations"
2019-07-21 23:04:00 +02:00
./initConfig.sh
echo "[prepareServer.sh]force workshop download"
2019-07-21 23:04:00 +02:00
./forceWorkshopDownload.sh
echo "[prepareServer.sh]install & mount gamefiles"
2019-07-21 23:04:00 +02:00
./installAndMountAddons.sh
cd "$STEAM_PATH"