From a5aa713e3702ee4120d96c7a1b334c7b9be26942 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 11 Sep 2022 05:51:25 +0200 Subject: [PATCH] remove testing stuff --- install-xash3d.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install-xash3d.sh b/install-xash3d.sh index 4521cad..53cbb3d 100644 --- a/install-xash3d.sh +++ b/install-xash3d.sh @@ -184,7 +184,7 @@ quit" > $XASH3D_BASEDIR/steam/hlds.install ## run half-life download from steam server with steamcmd ## If grep find Error then fetch the hlds zip from github echo "= This can take a while depending ony your connection =" - if ! true #./steamcmd.sh +runscript hlds.install | grep Error + if ./steamcmd.sh +runscript hlds.install | grep Error then echo "= !! There was an error fetching hlds with steamcmd. Fetching it from github !! =" echo $hlds_url @@ -226,13 +226,14 @@ then echo "= Creating start.sh script for dedicated server in build/result =" case $XASH_INSTALL_VERSION in 0.19) - echo -e "#!/bin/bash\nscreen -d -m -S xash_${XASH_INSTALL_VERSION}_${XASHDS_PORT} ./xash +ip 0.0.0.0 +port ${XASHDS_PORT} -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_RESULTDIR/start.sh + lol="+port" ;; 0.20) - echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_RESULTDIR/start.sh + lol="-port" ;; esac - + echo -e "#!/bin/bash\nscreen -d -m -S xash_${XASH_INSTALL_VERSION}_${XASHDS_PORT} ./xash +ip 0.0.0.0 ${lol} ${XASHDS_PORT} -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_RESULTDIR/start.sh + chmod +x $XASH3D_BASEDIR/result/start.sh touch $XASH3D_RESULTDIR/valve/listip.cfg touch $XASH3D_RESULTDIR/valve/banned.cfg