From 5689cbe03a7c6b7877019ab6bf87e21554b605f0 Mon Sep 17 00:00:00 2001 From: Scarsz Date: Wed, 17 Sep 2014 23:17:30 -0700 Subject: [PATCH] Add gsquery to supported servers /nosleep --- CounterStrike/csserver | 17 ++++++++++++++++- CounterStrikeConditionZero/csczserver | 18 +++++++++++++++++- CounterStrikeGlobalOffensive/csgoserver | 17 ++++++++++++++++- CounterStrikeSource/cssserver | 17 ++++++++++++++++- DayOfDefeat/dodserver | 17 ++++++++++++++++- DayOfDefeatSource/dodsserver | 17 ++++++++++++++++- FistfulOfFrags/fofserver | 17 ++++++++++++++++- GarrysMod/gmodserver | 17 ++++++++++++++++- HalfLife2Deathmatch/hl2dmserver | 17 ++++++++++++++++- HalfLifeDeathmatchClassic/hldmcserver | 17 ++++++++++++++++- Insurgency/insserver | 17 ++++++++++++++++- KillingFloor/kfserver | 15 +++++++++++++++ Left4Dead/l4dserver | 17 ++++++++++++++++- Left4Dead2/l4d2server | 17 ++++++++++++++++- NaturalSelection2/ns2server | 17 ++++++++++++++++- NoMoreRoomInHell/nmrihserver | 17 ++++++++++++++++- RedOrchestra/roserver | 17 ++++++++++++++++- TeamFortress2/tf2server | 17 ++++++++++++++++- TeamFortressClassic/tfcserver | 17 ++++++++++++++++- UnrealTournament2004/ut2k4server | 15 +++++++++++++++ UnrealTournament99/ut99server | 17 ++++++++++++++++- 21 files changed, 335 insertions(+), 19 deletions(-) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 1e5666367..1ce760694 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -739,6 +739,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -785,6 +799,7 @@ fn_steaminstall fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/CounterStrikeConditionZero/csczserver b/CounterStrikeConditionZero/csczserver index 8b71b2b64..9369c9a6b 100644 --- a/CounterStrikeConditionZero/csczserver +++ b/CounterStrikeConditionZero/csczserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -739,6 +739,21 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -782,6 +797,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index e85479ed4..7c1e1d777 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -769,6 +769,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -812,6 +826,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index f21b217d1..348745760 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -740,6 +740,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -783,6 +797,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index 635b4db85..367632cf2 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -739,6 +739,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -785,6 +799,7 @@ fn_steaminstall fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index e0f469a4b..8ca29c83c 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -740,6 +740,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -783,6 +797,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/FistfulOfFrags/fofserver b/FistfulOfFrags/fofserver index f2476d381..d723372a9 100644 --- a/FistfulOfFrags/fofserver +++ b/FistfulOfFrags/fofserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -752,6 +752,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -795,6 +809,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery fn_fofdeps echo "Configuring ${gamename} Server" echo "=================================" diff --git a/GarrysMod/gmodserver b/GarrysMod/gmodserver index cda9aa998..bf7c1d2d0 100644 --- a/GarrysMod/gmodserver +++ b/GarrysMod/gmodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 150914 +# Version: 170914 #### Variables #### @@ -776,6 +776,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -819,6 +833,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery fn_gmoddeps echo "Configuring ${gamename} Server" echo "=================================" diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 0c51f75cf..0c89adb05 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -740,6 +740,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -783,6 +797,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/HalfLifeDeathmatchClassic/hldmcserver b/HalfLifeDeathmatchClassic/hldmcserver index a87dbc94f..da5327e23 100644 --- a/HalfLifeDeathmatchClassic/hldmcserver +++ b/HalfLifeDeathmatchClassic/hldmcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -739,6 +739,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -785,6 +799,7 @@ fn_steaminstall fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/Insurgency/insserver b/Insurgency/insserver index 6caf91782..9684b6290 100644 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -752,6 +752,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -795,6 +809,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery fn_insdeps echo "Configuring ${gamename} Server" echo "=================================" diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index f1b25cf5b..5e049291a 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -803,6 +803,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -846,6 +860,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index 28b9293c5..bf547a5f2 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -5,7 +5,7 @@ # Contributor: Summit Singh Thakur # Author Website: http://danielgibbs.co.uk # Contributor Website: http://www.summit.im -# Version: 100914 +# Version: 170914 #### Variables #### @@ -752,6 +752,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -795,6 +809,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery fn_l4ddeps echo "Configuring ${gamename} Server" echo "=================================" diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index b3f30c122..db62bc606 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -739,6 +739,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -782,6 +796,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index 904dec1f2..334ff4c94 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -753,6 +753,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -796,6 +810,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery fn_ns2deps fn_header sleep 1 diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 4f0e701e7..d3e27c9bf 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -750,6 +750,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -793,6 +807,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery fn_nmrihdeps echo "Configuring ${gamename} Server" echo "=================================" diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index 802caee2b..e6c004df2 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -783,6 +783,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -826,6 +840,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 3ae67c069..3ad3790ab 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -740,6 +740,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -783,6 +797,7 @@ fn_steamdl fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/TeamFortressClassic/tfcserver b/TeamFortressClassic/tfcserver index 7c6273881..856b7c6fe 100644 --- a/TeamFortressClassic/tfcserver +++ b/TeamFortressClassic/tfcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -739,6 +739,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -785,6 +799,7 @@ fn_steaminstall fn_steaminstall fn_steamfix fn_loginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index 99726d2ac..bb8676c97 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -814,6 +814,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -857,6 +871,7 @@ fn_ut2k4filesdl fn_ut2k4install fn_ut2k4key fn_utloginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1 diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index 2c452923a..54719d3eb 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 100914 +# Version: 170914 #### Variables #### @@ -777,6 +777,20 @@ sleep 1 echo "" } +fn_getquery(){ + echo "GameServerQuery" + echo "============================" + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) wget -nv "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;; + [Nn]* ) echo -e "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done + echo "" +} + fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn @@ -819,6 +833,7 @@ fn_header fn_ut99filesdl fn_ut99install fn_utloginstall +fn_getquery echo "Configuring ${gamename} Server" echo "=================================" sleep 1