From 21b6550328506981cd1d450ef0bd1debbe791abe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 29 Feb 2024 07:11:36 -0600 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 354b9865..7170f844 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -205,7 +205,8 @@ STATUS(){ ## REPLICATION CHECK ######################## # if [ "${STATUS_ACTION}" == "report" ] || [ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "check" ] || [ "${STATUS_ACTION}" == "" ]; then - if [ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "" ] || ([ "${STATUS_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]); then + # if [ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "" ] || ([ "${STATUS_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]); then + if [ "${STATUS_ACTION}" == "repl" ] || ([ "${STATUS_ACTION}" == "" ] && [ "${ntss}" == "" ]) || ([ "${STATUS_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]) || ([ "${ntss}" != "" ] && [ "${NM_REPL_CHECK[${ntss}]}" != "" ] && ([ "${STATUS_ACTION}" == "" ] || [ "${STATUS_ACTION}" == "repl" ])); then if [ "${STATUS_ACTION}" != "check" ]; then echo -e "${idsST[Bold]}"; DIVIDER . . ${DV_LEN} echo -e "${idsCL[Yellow]} Replication Status Between the Primary and Secondary Nodes${idsCL[Default]}"