update
This commit is contained in:
@@ -688,7 +688,7 @@ STATUS_NODE(){
|
||||
|
||||
#########################################
|
||||
############ 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 120 ]; 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 120 ] && [ "$(GETSKIP ${nip} host)" == "false" ]; then
|
||||
if [ "${srvc}" == "pihole-FTL" ]; then
|
||||
${SSHCMD} root@${nip} 'pihole -r' & >/dev/null 2>&1
|
||||
touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix
|
||||
|
||||
Reference in New Issue
Block a user