From 9e12de75f7cc9998796246fec920138c58f0093f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Dec 2023 20:04:42 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/status.inc b/inc/status.inc index f6d17be5..7e0c00dd 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -303,6 +303,10 @@ STATUS(){ fi [ "${mysqlgo}" = "true" ] && unset mysqlgo [ "${SSCHK}" == "primary" ] && echo -e "${idsCL[LightCyan]} - Primary Node${idsCL[Default]}" || echo -e "${idsCL[Default]}" + + elif [ "${srvc}" == "keepalived" ] && ([ "${nip}" == "10.2.1.2" ] || [ "${nip}" == "10.2.1.51" ]); then + echo -e "${idsCL[White]} ${NM_SERVICE_DESC[${srvc}]}${spc}${idsCL[Default]}: ${idsCL[LightCyan]}Disabled${idsCL[Default]}" + else echo -e "${idsCL[White]} ${NM_SERVICE_DESC[${srvc}]}${spc}${idsCL[Default]}: ${idsCL[LightCyan]}Disabled - Secondary Node${idsCL[Default]}"