update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='5.6.53-03012026'
|
VERS='5.6.54-03042026'
|
||||||
NM_BETA=false
|
NM_BETA=false
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -698,10 +698,17 @@ 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 ]; 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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${srvc}" == "proxlb" ]; then
|
||||||
|
${SSHCMD} root@${nip} 'systemctl restart proxlb' & >/dev/null 2>&1
|
||||||
|
touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
#########################################
|
#########################################
|
||||||
#########################################
|
#########################################
|
||||||
|
|||||||
Reference in New Issue
Block a user