From d4b307134a6da972283f7575cd01f51f0fcd569a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 2 Dec 2014 19:42:10 +0000 Subject: [PATCH] Added support for CSCZ --- functions/fn_serverconfig | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/functions/fn_serverconfig b/functions/fn_serverconfig index 4bd79d313..79600f6ef 100644 --- a/functions/fn_serverconfig +++ b/functions/fn_serverconfig @@ -34,11 +34,11 @@ touch "${systemdir}/listip.cfg" echo "creating banned.cfg." touch "${systemdir}/banned.cfg" sleep 1 -echo "" -echo "Configuring ${gamename} Server" -echo "=================================" -sleep 1 if [ -z "${autoinstall}" ]; then + echo "" + echo "Configuring ${gamename} Server" + echo "=================================" + sleep 1 read -p "Enter server name: " servername read -p "Enter rcon password: " rconpass else @@ -76,11 +76,11 @@ echo "creating redirect." echo "server.cfg > ${servercfg}." echo "exec ${servercfg}" > "${defaultcfg}" sleep 1 -echo "" -echo "Configuring ${gamename} Server" -echo "=================================" -sleep 1 if [ -z "${autoinstall}" ]; then + echo "" + echo "Configuring ${gamename} Server" + echo "=================================" + sleep 1 read -p "Enter server name: " servername read -p "Enter rcon password: " rconpass else @@ -129,13 +129,15 @@ elif [ "${gamename}" == "Blade Symphony" ]; then elif [ "${gamename}" == "Counter Strike 1.6" ]; then wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrike/cfg/lgsm-default.cfg fn_goldsourceconfig +elif [ "${gamename}" == "Counter Strike: Condition Zero" ]; then + wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/cfg/lgsm-default.cfg + fn_goldsourceconfig elif [ "${gamename}" == "Counter Strike: Source" ]; then wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeSource/cfg/lgsm-default.cfg fn_sourceconfig elif [ "${gamename}" == "Just Cause 2" ]; then echo "lgsm-default.cfg not required." fn_jc2config - elif [ "${gamename}" == "Unreal Tournament 2004" ]; then echo "lgsm-default.cfg not required." fn_ut2k4config