فهرست منبع

altered to fatal error

Daniel Gibbs 10 سال پیش
والد
کامیت
77829d393b
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      lgsm/functions/check_ip.sh

+ 6 - 2
lgsm/functions/check_ip.sh

@@ -18,14 +18,18 @@ if [ "${gamename}" != "Teamspeak 3" ]; then
 
 	if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then
 		if [ "${getipwc}" -ge "2" ]; then
-			fn_print_warn "Multiple active network interfaces found.\n\n"
+			fn_print_fatal "Multiple active network interfaces found.\n\n"
+			fn_script_log_fatal "Multiple active network interfaces found."
 			echo -en "Manually specify the IP you want to use within the ${selfname} script.\n"
 			echo -en "Set ip=\"0.0.0.0\" to one of the following:\n"
 			echo -en "${getip}\n"
 			echo -en ""
 			echo -en "https://gameservermanagers.com/network-interfaces\n"
 			echo -en ""
-			exit 1
+			fn_script_log_fatal "Multiple active network interfaces found."
+			fn_script_log_fatal "Manually specify the IP you want to use within the ${selfname} script."
+			fn_script_log_fatal "https://gameservermanagers.com/network-interfaces\n"
+			core_exit.sh
 		else
 			ip=${getip}
 		fi