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 12:39:29 +02:00
|
|
|
LGSM_SERVER_CONFIG="/home/steam/lgsm/config-lgsm/gmodserver/common.cfg"
|
|
|
|
|
2019-07-29 21:51:34 +02:00
|
|
|
mkdir -p "/home/steam/lgsm/config-lgsm/gmodserver/"
|
2019-10-15 12:39:29 +02:00
|
|
|
cp -f "/home/common.cfg" "$LGSM_SERVER_CONFIG" # 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"
|
2019-10-15 12:39:29 +02:00
|
|
|
echo "[prepareServer.sh]check configurations"
|
2019-07-21 23:04:00 +02:00
|
|
|
./initConfig.sh
|
2019-10-15 12:39:29 +02:00
|
|
|
echo "[prepareServer.sh]force workshop download"
|
2019-07-21 23:04:00 +02:00
|
|
|
./forceWorkshopDownload.sh
|
2019-10-15 12:39:29 +02:00
|
|
|
echo "[prepareServer.sh]install & mount gamefiles"
|
2019-07-21 23:04:00 +02:00
|
|
|
./installAndMountAddons.sh
|
|
|
|
cd "$STEAM_PATH"
|