From 20f13d83c67f61c7edf19ffafe9e9f583aea1beb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 11 Jun 2022 22:36:04 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 22cdbac1..cfa5858b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1842,7 +1842,15 @@ if [ ${action-x} ]; then backup) BACKUP;; status) if [ -f "${FOLDER}/status-check.running" ]; then - [ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ] && rm -f "${FOLDER}/status-check.running" + echo 'yes1' + if [ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ]; then + echo 'yes2' + rm -f "${FOLDER}/status-check.running" + else + echo 'no2' + fi + else + echo 'no1' fi if [ ! -f "${FOLDER}/status-check.running" ]; then touch "${FOLDER}/status-check.running"