This commit is contained in:
Marcus 2022-09-11 05:15:01 +02:00
parent c4c463567f
commit c1a8f42a23

View file

@ -8,7 +8,11 @@ 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" 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" 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" jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz"
if [ -z $XASHDS_PORT ]
then
XASHDS_PORT=27015 XASHDS_PORT=27015
fi
showhelp() { showhelp() {
echo "Usage: ./$0 [server|client] [install|update] [0.19|0.20]" echo "Usage: ./$0 [server|client] [install|update] [0.19|0.20]"
@ -220,10 +224,10 @@ then
echo "= Creating start.sh script for dedicated server in build/result =" echo "= Creating start.sh script for dedicated server in build/result ="
case $XASH_INSTALL_VERSION in case $XASH_INSTALL_VERSION in
0.19) 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 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_BASEDIR/result/start.sh
;; ;;
0.20) 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 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_BASEDIR/result/start.sh
;; ;;
esac esac