prophunt-garrysmod/gmod/prepareServer.sh

25 lines
667 B
Bash

#!/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
LGSM_SERVER_CONFIG="/home/steam/lgsm/config-lgsm/gmodserver/common.cfg"
mkdir -p "/home/steam/lgsm/config-lgsm/gmodserver/"
cp -f "/home/common.cfg" "$LGSM_SERVER_CONFIG" # common.cfg should be target, but is wrong, maybe a bug. (gmodserver working)
cd "/home"
echo "[prepareServer.sh]check configurations"
./initConfig.sh
echo "[prepareServer.sh]force workshop download"
./forceWorkshopDownload.sh
echo "[prepareServer.sh]install & mount gamefiles"
./installAndMountAddons.sh
cd "$STEAM_PATH"