diff --git a/lgsm/functions/monitor_gsquery.sh b/lgsm/functions/monitor_gsquery.sh index a771b4c91..c1ac2e22c 100644 --- a/lgsm/functions/monitor_gsquery.sh +++ b/lgsm/functions/monitor_gsquery.sh @@ -29,7 +29,7 @@ if [ "${gsquery}" == "yes" ]; then port=$((port + 1)) fi - if [ -z "${queryport}" ]; then + if [ -n "${queryport}" ]; then port="${queryport}" fi