diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a18ebf71..a705019f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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