This commit is contained in:
2024-11-29 15:43:56 -06:00
parent 9e085747ce
commit 783145a600
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='5.3.6-11292024'
VERS='5.3.7-11292024'
NM_BETA=false
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck offsite-staticroute-fix '

View File

@@ -248,8 +248,9 @@ STATUS(){
checked=skip
fi
if [ $(($(date +%s)-scanstart)) -gt 600 ]; then
SENDNOTICE "NMG Scan Stuck" "NMG Status Check has been running for 10mins, klling all bash...." 1
SENDNOTICE "NMG Scan Stuck" "NMG Status Replication Check has been running for 10mins, klling all bash...." 1
touch ${NM_TMPFOLDER}/.replcheck.fail
mv ${STATUSRUN_TMPFOLDER} ${STATUSRUN_TMPFOLDER}.stuck
killall bash
exit 1
fi

View File

@@ -1299,7 +1299,7 @@ GUI(){
else
if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 900 ]; then
for oldstatus_check in ${NM_TMPFOLDER}/status-*; do
[ -d "${oldstatus_check}" ] && rm -Rf ${oldstatus_check}
[[ "${oldstatus_check}" !=~ *".stuck"* ]] && [ $(expr $(date +%s) - $(stat -c %Y ${oldstatus_check})) -ge 60 ] rm -Rf ${oldstatus_check}
done
touch ${NM_TMPFOLDER}/.statusclean
fi