Explorar el Código

Adjustments to how IP is displayed

Daniel Gibbs hace 7 años
padre
commit
a9ab62af19

+ 5 - 0
lgsm/functions/command_debug.sh

@@ -51,6 +51,11 @@ if [ -n "${glibcrequired}" ]; then
 	fi
 fi
 # Server ip
+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
 echo -e "${blue}Server IP:\t${default}${ip}:${port}"
 # External server ip
 if [ -n "${extip}" ]; then

+ 2 - 1
lgsm/functions/command_postdetails.sh

@@ -56,10 +56,11 @@ else
 		# Run checks and gathers details to display.
 		check.sh
 		info_config.sh
+		info_parms.sh
 		info_distro.sh
 		info_glibc.sh
-		info_parms.sh
 		info_messages.sh
+		query_gamedig.sh
 		fn_info_message_distro
 		fn_info_message_performance
 		fn_info_message_disk

+ 8 - 4
lgsm/functions/info_messages.sh

@@ -24,7 +24,11 @@ fn_info_message_head(){
 	echo -e "${HOSTNAME}"
 	echo -e ""
 	echo -e "Server IP"
-	echo -e "${ip}:${port}"
+	if [ "${multiple_ip}" == "1" ]; then
+	    echo -e "NOT SET"
+	else
+	    echo -e "${ip}:${port}"
+	fi
 }
 
 fn_info_message_distro(){
@@ -139,10 +143,10 @@ fn_info_message_gameserver(){
 		fi
 
 		# Server ip
-		if [ ${multiple_ip} == 1 ]; then
-		    echo -e "${blue}Server IP:\t${default}NOT SET"
+		if [ "${multiple_ip}" == "1" ]; then
+			echo -e "${blue}Server IP:\t${default}NOT SET"
 		else
-		    echo -e "${blue}Server IP:\t${default}${ip}:${port}"
+			echo -e "${blue}Server IP:\t${default}${ip}:${port}"
 		fi
 
 		# External server ip