From 07d8878171f8fa66d807010b3bc1e2c1a09d6e36 Mon Sep 17 00:00:00 2001 From: Elizabeth Frazier Date: Sun, 20 Aug 2017 11:54:25 -0700 Subject: [PATCH] Change multi-IP detection messgeing in check_ip.sh; Alow command_details.sh to continue running after multi-IP detection. --- lgsm/functions/check_ip.sh | 5 +++-- lgsm/functions/command_details.sh | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/check_ip.sh b/lgsm/functions/check_ip.sh index 468ac529a..9bb8b1a59 100644 --- a/lgsm/functions/check_ip.sh +++ b/lgsm/functions/check_ip.sh @@ -19,9 +19,10 @@ if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travi info_config.sh if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then - fn_print_dots "Check IP" + multiple_ip=1 + fn_print_dots "Check IP" sleep 1 - fn_print_fail "Check IP: Multiple active network interfaces found." + fn_print_warn "Check IP: Multiple active network interfaces found." sleep 1 echo -en "\n" if [ "${ipsetinconfig}" == "1" ]; then diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh index 4e5eb2eca..8a4c59b14 100644 --- a/lgsm/functions/command_details.sh +++ b/lgsm/functions/command_details.sh @@ -116,8 +116,12 @@ fn_details_gameserver(){ fi # Server ip - echo -e "${blue}Server IP:\t${default}${ip}:${port}" - + if [ ${multiple_ip} == 1 ]; then + echo -e "${blue}Server IP:\t${default}NOT SET" + else + echo -e "${blue}Server IP:\t${default}${ip}:${port}" + fi + # Server password if [ -n "${serverpassword}" ]; then echo -e "${blue}Server password:\t${default}${serverpassword}"