From c4c463567fad2f27c16ab250ed5a230a8d0b3214 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 11 Sep 2022 05:12:04 +0200 Subject: [PATCH] typo --- install-xash3d.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install-xash3d.sh b/install-xash3d.sh index f88a6fa..0a5edb4 100644 --- a/install-xash3d.sh +++ b/install-xash3d.sh @@ -8,6 +8,7 @@ hlds_url="https://github.com/DevilBoy-eXe/hlds/releases/download/$hlds_build/hld metamod_url="https://github.com/mittorn/metamod-p/releases/download/1/metamod.so" amxmod_url="http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz" jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz" +XASHDS_PORT=27015 showhelp() { echo "Usage: ./$0 [server|client] [install|update] [0.19|0.20]" @@ -73,7 +74,6 @@ case $1 in CMAKE_OPTIONS='-DXASH_DEDICATED=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32"' ;; 0.20) - XASHDS_PORT=27015 PACKAGES="build-essential ca-certificates cmake curl git gnupg2 g++-multilib lib32gcc1-s1 libstdc++6:i386 python unzip xz-utils zip" WAF_OPTIONS="-d" ;; @@ -218,7 +218,15 @@ esac if [ "$XASH_INSTALL_TYPE" == "server" ] && [ "$XASH_INSTALL_MODE" == "install" ] then echo "= Creating start.sh script for dedicated server in build/result =" - echo "./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh + case $XASH_INSTALL_VERSION in + 0.19) + echo "./xash +ip 0.0.0.0 +port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh + ;; + 0.20) + echo "./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh + ;; + esac + chmod +x $XASH3D_BASEDIR/result/start.sh touch $XASH3D_RESULTDIR/valve/listip.cfg touch $XASH3D_RESULTDIR/valve/banned.cfg