This commit is contained in:
2023-10-09 16:10:04 -05:00
parent d2bceef789
commit 245a2dd4f3
2 changed files with 45 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERS='4.12.25-10082023'
VERS='4.12.26-10092023'
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense '
CERT_DAEMON='/snap/bin/certbot'

View File

@@ -884,6 +884,9 @@ GUI(){
DOWNLIST ${2}
;;
status)
if [ "${2}" == "freespace" ]; then
STATUS freespace
else
if [ -f "${NM_TMPFOLDER}/status-check.running" ] && [ $(expr `date +%s` - $(stat -c %Y ${NM_TMPFOLDER}/status-check.running)) -gt 1800 ]; then
# if [ -f "${NM_TMPFOLDER}/status-check.running" ]; then
SENDNOTICE "Nodemgmt Script Error" "Status monitoring stuck, system resetting... fix yo shit"
@@ -931,6 +934,7 @@ GUI(){
[Pp]) echo; cat ${NM_LOGFOLDER}/status-check.lastrun;;
esac
echo
fi
fi;;
checkdocker) CHECK_DOCKER_SERVICES ${2};;
set-permissions) SET-PERMISSIONS ${2};;