From 6edca361279e5dd2dfee9e2ca523d0d8c76348b4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 11 Jun 2022 22:39:41 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e38fcf8a..45ae84cb 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1842,8 +1842,10 @@ if [ ${action-x} ]; then backup) BACKUP;; status) if [ -f "${FOLDER}/status-check.running" ]; then - echo 'yes1' - if [ $(`stat --format=%Y "${FOLDER}/status-check.running"`) -lt $((`date +%s` - 300)) ]; then + fd=`stat --format=%Y "${FOLDER}/status-check.running"` + cbd=$((`date +%s` - 300)) + echo 'yes1-${fd}-${cbd}' + if [ ${fd} -lt ${cbd} ]; then echo 'yes2' rm -f "${FOLDER}/status-check.running" else