Parcourir la source

Change multi-IP detection messgeing in check_ip.sh; Alow command_details.sh to continue running after multi-IP detection.

Elizabeth Frazier il y a 8 ans
Parent
commit
07d8878171
2 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. 3 2
      lgsm/functions/check_ip.sh
  2. 6 2
      lgsm/functions/command_details.sh

+ 3 - 2
lgsm/functions/check_ip.sh

@@ -19,9 +19,10 @@ if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travi
 	info_config.sh
 	info_config.sh
 	if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then
 	if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then
 		if [ "${getipwc}" -ge "2" ]; then
 		if [ "${getipwc}" -ge "2" ]; then
-			fn_print_dots "Check IP"
+		        multiple_ip=1
+		        fn_print_dots "Check IP"
 			sleep 1
 			sleep 1
-			fn_print_fail "Check IP: Multiple active network interfaces found."
+			fn_print_warn "Check IP: Multiple active network interfaces found."
 			sleep 1
 			sleep 1
 			echo -en "\n"
 			echo -en "\n"
 			if [ "${ipsetinconfig}" == "1" ]; then
 			if [ "${ipsetinconfig}" == "1" ]; then

+ 6 - 2
lgsm/functions/command_details.sh

@@ -116,8 +116,12 @@ fn_details_gameserver(){
 		fi
 		fi
 
 
 		# Server ip
 		# 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
 		# Server password
 		if [ -n "${serverpassword}" ]; then
 		if [ -n "${serverpassword}" ]; then
 			echo -e "${blue}Server password:\t${default}${serverpassword}"
 			echo -e "${blue}Server password:\t${default}${serverpassword}"