Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-06 11:22:14 -06:00
parent 62111fe2fb
commit 4b3c701411

View File

@@ -943,7 +943,7 @@ GUI(){
backup-offsitepfsense) BACKUP_OFFSITEPFSENSE;;
test)
if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 1 ]; then
if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 3600 ]; then
for oldstatus_check in ${NM_TMPFOLDER}/*; do
if [ -d "${oldstatus_check}" ]; then
echo "(${oldstatus_check}) $(date +%s) - $(stat -c %Y ${oldstatus_check}) = $(expr $(date +%s) - $(stat -c %Y ${oldstatus_check}))"