From 6a3f54bf7c5be0bbdfc50e5f86c66a0daced8228 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 May 2017 21:48:55 +0100 Subject: [PATCH] Now prevents IP check from running on installer this prevents issues with ut2k4server requiring restarts on install --- lgsm/functions/check.sh | 4 +++- lgsm/functions/command_install.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/check.sh b/lgsm/functions/check.sh index c8e17cb05..196b748e0 100644 --- a/lgsm/functions/check.sh +++ b/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 diff --git a/lgsm/functions/command_install.sh b/lgsm/functions/command_install.sh index f344cc598..0a4f03cee 100644 --- a/lgsm/functions/command_install.sh +++ b/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