Просмотр исходного кода

Merge pull request #1948 from GameServerManagers/feature/ultimatebyte-1385

Do not exit details if IP is not set
Daniel Gibbs 7 лет назад
Родитель
Сommit
ce813f3445
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      lgsm/functions/check_ip.sh

+ 7 - 2
lgsm/functions/check_ip.sh

@@ -53,8 +53,13 @@ if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travi
 			echo -en "\n"
 			echo -en "https://linuxgsm.com/network-interfaces\n"
 			echo -en ""
-			fn_script_log_fatal "https://linuxgsm.com/network-interfaces\n"
-			core_exit.sh
+			# Do not exit for details and postdetails commands
+			if [ "${commandaction}" != "Details" ]&&[ "${commandaction}" != "Postdetails" ]; then
+				fn_script_log_fatal "https://linuxgsm.com/network-interfaces\n"
+				core_exit.sh
+			else
+				ip="NOT SET"
+			fi
 		# Single interface
 		elif [ "${ipsetinconfig}" == "1" ]; then
 			fn_print_fail "Check IP: IP address not set in game config."