فهرست منبع

Now prevents IP check from running on installer

this prevents issues with ut2k4server requiring restarts on install
Daniel Gibbs 9 سال پیش
والد
کامیت
6a3f54bf7c
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 1
      lgsm/functions/check.sh
  2. 1 0
      lgsm/functions/command_install.sh

+ 3 - 1
lgsm/functions/check.sh

@@ -65,7 +65,9 @@ local allowed_commands_array=( command_debug.sh command_details.sh command_monit
 for allowed_command in "${allowed_commands_array[@]}"
 do
 	if [ "${allowed_command}" == "${function_selfname}" ]; then
-		check_ip.sh
+		if [ -z "${installflag}" ]; then
+			check_ip.sh
+		fi
 	fi
 done
 

+ 1 - 0
lgsm/functions/command_install.sh

@@ -14,6 +14,7 @@ install_header.sh
 install_server_dir.sh
 install_logs.sh
 check_deps.sh
+installflag=1
 # Download and install
 if [ "${gamename}" == "Unreal Tournament 2004" ]; then
 	install_server_files.sh