Update nodemgmt-scripts.sh

This commit is contained in:
2022-06-11 22:34:28 -05:00
parent 1a59252c17
commit be49b9637e

View File

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