Update nodemgmt-scripts.sh

This commit is contained in:
2022-06-11 22:33:38 -05:00
parent 23cc5abb1d
commit 1a59252c17

View File

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