Update status.inc

This commit is contained in:
2026-03-08 10:58:03 -05:00
parent a9a3f05daf
commit d1f79a17cc

View File

@@ -697,13 +697,13 @@ STATUS_NODE(){
######################################### #########################################
############ SERVICE REPAIRS ############ ############ SERVICE REPAIRS ############
if [ ! -f ${NM_TMPFOLDER}/${nip}~${srvc}.disable ] && [ ! -f ${NM_TMPFOLDER}/${nip}~${srvc}.fix ] && [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${srvc}.down)) -gt 90 ]; then if [ ! -f ${NM_TMPFOLDER}/${nip}~${srvc}.disable ] && (([ ! -f ${NM_TMPFOLDER}/${nip}~${srvc}.fix ] && [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${srvc}.down)) -gt 90 ]) || ([ -f ${NM_TMPFOLDER}/${nip}~${srvc}.fix ] && [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${srvc}.fix)) -gt 600 ])); then
if [ "${srvc}" == "pihole-FTL" ]; then if [ "${srvc}" == "pihole-FTL" ]; then
${SSHCMD} root@${nip} 'pihole -r' & >/dev/null 2>&1 ${SSHCMD} root@${nip} 'pihole -r' & >/dev/null 2>&1
touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix
elif [ "${srvc}" == "proxlb" ]; then elif [ "${srvc}" == "proxlb" ]; then
${SSHCMD} root@${nip} 'systemctl restart proxlb' & >/dev/null 2>&1 ${SSHCMD} root@${nip} 'systemctl restart proxlb' & >/dev/null 2>&1
touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix
fi fi