+ added run arguments to lgsm config
This commit is contained in:
parent
0e4af9bb0d
commit
c0e45126d9
@ -6,9 +6,7 @@ set -e
|
|||||||
|
|
||||||
cd "$STEAM_PATH"
|
cd "$STEAM_PATH"
|
||||||
#suggested -disableluarefresh -tickrate 66 +host_workshop_collection -port 27015
|
#suggested -disableluarefresh -tickrate 66 +host_workshop_collection -port 27015
|
||||||
export parms="-game garrysmod +gamemode terrortown "$(printf "%s " "$@")
|
|
||||||
#not needed I think: sed -i 's/parms=/#parms=/g' /home/steam/lgsm/config-lgsm/gmodserver/common.cfg
|
|
||||||
echo "starting with $parms"
|
|
||||||
|
|
||||||
if [ -e "${STEAM_PATH}/gmodserver" ]; then
|
if [ -e "${STEAM_PATH}/gmodserver" ]; then
|
||||||
./gmodserver update-lgsm
|
./gmodserver update-lgsm
|
||||||
@ -27,6 +25,17 @@ echo "install & mount gamefiles"
|
|||||||
./installAndMountAddons.sh
|
./installAndMountAddons.sh
|
||||||
cd "$STEAM_PATH"
|
cd "$STEAM_PATH"
|
||||||
|
|
||||||
|
export parms="-game garrysmod +gamemode terrortown "$(printf "%s " "$@")
|
||||||
|
if [ -e "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/gmodserver.cfg" ]; then
|
||||||
|
rm -f "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/gmodserver.cfg"
|
||||||
|
fi
|
||||||
|
mkdir -p "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/"
|
||||||
|
touch "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/gmodserver.cfg"
|
||||||
|
echo "fn_parms(){" > "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/gmodserver.cfg"
|
||||||
|
echo "parms="'"'"$parms"'"' >> "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/gmodserver.cfg"
|
||||||
|
echo "}" >> "${STEAM_PATH}/lgsm/config-lgsm/gmodserver/gmodserver.cfg"
|
||||||
|
echo "starting with $parms"
|
||||||
|
|
||||||
trap 'pkill -15 srcds_linux' SIGTERM
|
trap 'pkill -15 srcds_linux' SIGTERM
|
||||||
./gmodserver start
|
./gmodserver start
|
||||||
./gmodserver console
|
./gmodserver console
|
||||||
|
Loading…
Reference in New Issue
Block a user