Update nodemgmt-scripts.sh

This commit is contained in:
2023-03-19 10:45:20 -05:00
parent 9db7713830
commit 8babb6bc6e

View File

@@ -265,13 +265,13 @@ STATUS(){
SENDNOTICE "${NM_NODETYPES[$NTYPE]}-Node${nid}-${nip}" "${NM_SERVICES[${srvc}]} is back UP! It was down for $(SHOW_TIME ${toterrtime})"
echo "$(date) - ${nip} - ${NM_NODETYPES[$NTYPE]}-Node${nid} - ${NM_SERVICES[${srvc}]} is back up, it was down for $(SHOW_TIME ${toterrtime})" >> ${LOGFILE}
if [ "${srvc}" == "pdnsadmin.socket" ] || [ "${srvc}" == "pdnsadmin" ] || [ "${srvc}" == "gitea" ]; then
rm -f ${FOLDER}/*-${srvc}.down
rm -f ${FOLDER}/*-${srvc}.errtime
else
rm -f ${FOLDER}/${nip}-${srvc}.down
rm -f ${FOLDER}/${nip}-${srvc}.errtime
fi
rm -f ${FOLDER}/${nip}-${srvc}.down
rm -f ${FOLDER}/${nip}-${srvc}.errtime
fi
if [ "${srvc}" == "pdnsadmin.socket" ] || [ "${srvc}" == "pdnsadmin" ] || [ "${srvc}" == "gitea" ]; then
rm -f ${FOLDER}/*-${srvc}.down
rm -f ${FOLDER}/*-${srvc}.errtime
fi
fi
[ "${mysqlgo}" = "true" ] && unset mysqlgo