From b5be3d1685a8517e5ebb8e68b7e599dc8a11e046 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 18 Oct 2023 10:05:35 -0500 Subject: [PATCH] Update status.inc --- inc/status.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index 32f0dcd3..570b9d53 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -175,6 +175,7 @@ STATUS(){ sr=0 for srvc in "${!srvcs}"; do [ "${srvc}" == "gitea" ] && [ "${NTYPE}" == "WEB" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${NM_SINGLESRVR_IP['WEB']}* ]] && NOGOCHK=false || NOGOCHK=true + [ "${srvc}" == "headscale" ] && [ "${NTYPE}" == "HS" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${NM_SINGLESRVR_IP['HS']}* ]] && NOGOCHK=false [ "${srvc}" == "keepalived" ] && [ "${nip}" == "10.2.1.2" ] && NOGOCHK=false if [ ${NOGOCHK} == true ]; then if [ "${ST_ACTION}" != "check" ]; then @@ -225,7 +226,7 @@ STATUS(){ fi # if [ "${srvc}" == "pdnsadmin.socket" ] || [ "${srvc}" == "pdnsadmin" ] || [ "${srvc}" == "gitea" ]; then - if [ "${srvc}" == "gitea" ]; then + if [ "${srvc}" == "gitea" ] || [ "${srvc}" == "headscale" ]; then rm -f ${NM_FOLDER}/*~${srvc}.* fi fi