Update nodemgmt-scripts.sh

This commit is contained in:
2022-06-11 22:39:41 -05:00
parent 9b841ad810
commit 6edca36127

View File

@@ -1842,8 +1842,10 @@ if [ ${action-x} ]; then
backup) BACKUP;; backup) BACKUP;;
status) status)
if [ -f "${FOLDER}/status-check.running" ]; then if [ -f "${FOLDER}/status-check.running" ]; then
echo 'yes1' fd=`stat --format=%Y "${FOLDER}/status-check.running"`
if [ $(`stat --format=%Y "${FOLDER}/status-check.running"`) -lt $((`date +%s` - 300)) ]; then cbd=$((`date +%s` - 300))
echo 'yes1-${fd}-${cbd}'
if [ ${fd} -lt ${cbd} ]; then
echo 'yes2' echo 'yes2'
rm -f "${FOLDER}/status-check.running" rm -f "${FOLDER}/status-check.running"
else else