Update nodemgmt-scripts.sh

This commit is contained in:
2022-06-11 22:34:58 -05:00
parent be49b9637e
commit d1657e812f

View File

@@ -1842,9 +1842,7 @@ if [ ${action-x} ]; then
backup) BACKUP;;
status)
if [ -f "${FOLDER}/status-check.running" ]; then
if [ `stat --format=%Y $file` -gt $(( `date +%s` - 300 )) ]; then
rm -f "${FOLDER}/status-check.running"
fi
[ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ] && rm -f "${FOLDER}/status-check.running"
fi
if [ ! -f "${FOLDER}/status-check.running" ]; then
touch "${FOLDER}/status-check.running"