From 1a59252c17cc44ac87ceb4c984267a9d21d70f65 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 11 Jun 2022 22:33:38 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a18ebf71..a705019f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1841,6 +1841,9 @@ if [ ${action-x} ]; then update-dyndns) UPDATE_DYNDNS ${2};; backup) BACKUP;; status) + if [ -f "${FOLDER}/status-check.running" ]; then + [ `stat --format=%Y $file` -gt $(( `date +%s` - 300 )) ] && rm -f "${FOLDER}/status-check.running" + fi if [ ! -f "${FOLDER}/status-check.running" ]; then touch "${FOLDER}/status-check.running" if [ "${2}" = "report" ]; then