From e05a42daae1ae0b4af1fe351a7224b061bac4918 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 6 Feb 2016 14:39:51 +0000 Subject: [PATCH] Added unset updateonstart to resolve updater looping updateonstart was causing the updater to loop if on. update now removes the updateonstart var to prevent it from looping --- functions/update_check.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/update_check.sh b/functions/update_check.sh index d51e16d09..773c88b25 100644 --- a/functions/update_check.sh +++ b/functions/update_check.sh @@ -2,7 +2,7 @@ # LGSM update_check.sh function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -lgsm_version="050216" +lgsm_version="060216" # Description: Checks if a server update is available. @@ -89,6 +89,7 @@ if [ "${requestrestart}" -ge "1" ]; then sleep 1 echo -ne "\n" tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:") + unset updateonstart if [ "${tmuxwc}" -eq 1 ]; then command_stop.sh update_dl.sh @@ -156,6 +157,7 @@ if [ "${currentbuild}" != "${availablebuild}" ]; then fn_scriptlog "${currentbuild} > ${availablebuild}" tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:") + unset updateonstart if [ "${tmuxwc}" -eq 1 ]; then command_stop.sh update_dl.sh @@ -283,6 +285,7 @@ if [ "${currentbuilddigit}" -ne "${availablebuilddigit}" ]; then fn_scriptlog "Current build: ${currentbuild}" fn_scriptlog "Available build: ${availablebuild}" fn_scriptlog "${currentbuild} > ${availablebuild}" + unset updateonstart info_ts3status.sh if [ "${ts3status}" = "No server running (ts3server.pid is missing)" ]; then update_dl.sh