Browse Source

removed if [ "${gsquery}" == "yes" ]; then

not sure why this is still here
pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
4559cee10c
  1. 43
      lgsm/functions/monitor_gsquery.sh

43
lgsm/functions/monitor_gsquery.sh

@ -9,38 +9,36 @@ local commandname="MONITOR"
local commandaction="Monitor" local commandaction="Monitor"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
if [ "${gsquery}" == "yes" ]; then # Downloads gsquery.py if missing
if [ ! -f "${functionsdir}/gsquery.py" ]; then
# Downloads gsquery.py if missing
if [ ! -f "${functionsdir}/gsquery.py" ]; then
fn_fetch_file_github "lgsm/functions" "gsquery.py" "${functionsdir}" "chmodx" "norun" "noforce" "nomd5" fn_fetch_file_github "lgsm/functions" "gsquery.py" "${functionsdir}" "chmodx" "norun" "noforce" "nomd5"
fi fi
info_config.sh info_config.sh
if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
port=$((port + 1)) port=$((port + 1))
elif [ "${engine}" == "realvirtuality" ]; then elif [ "${engine}" == "realvirtuality" ]; then
port=$((port + 1)) port=$((port + 1))
elif [ "${engine}" == "spark" ]; then elif [ "${engine}" == "spark" ]; then
port=$((port + 1)) port=$((port + 1))
elif [ "${engine}" == "idtech3_ql" ]; then elif [ "${engine}" == "idtech3_ql" ]; then
engine="quakelive" engine="quakelive"
fi fi
if [ -n "${queryport}" ]; then if [ -n "${queryport}" ]; then
port="${queryport}" port="${queryport}"
fi fi
fn_print_info "Querying port: gsquery.py enabled" fn_print_info "Querying port: gsquery.py enabled"
fn_script_log_info "Querying port: gsquery.py enabled" fn_script_log_info "Querying port: gsquery.py enabled"
sleep 1 sleep 1
# Will query up to 4 times every 15 seconds. # Will query up to 4 times every 15 seconds.
# Servers changing map can return a failure. # Servers changing map can return a failure.
# Will Wait up to 60 seconds to confirm server is down giving server time to change map. # Will Wait up to 60 seconds to confirm server is down giving server time to change map.
totalseconds=0 totalseconds=0
for queryattempt in {1..5}; do for queryattempt in {1..5}; do
fn_print_dots "Querying port: ${ip}:${port} : ${totalseconds}/${queryattempt} : " fn_print_dots "Querying port: ${ip}:${port} : ${totalseconds}/${queryattempt} : "
fn_print_querying_eol fn_print_querying_eol
fn_script_log_info "Querying port: ${ip}:${port} : ${queryattempt} : QUERYING" fn_script_log_info "Querying port: ${ip}:${port} : ${queryattempt} : QUERYING"
@ -84,6 +82,5 @@ if [ "${gsquery}" == "yes" ]; then
fi fi
done done
fi fi
done done
fi
core_exit.sh core_exit.sh
Loading…
Cancel
Save