diff --git a/inc/status.inc b/inc/status.inc index 27c47371..053ec735 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -14,6 +14,7 @@ STATUS(){ for NTYPE in "${NM_NODE_TYPES[@]}"; do if [ "${ST_ACTION^^}" == "${NTYPE}" ]; then ntypesel=${NTYPE} + ST_ACTION="" break fi done @@ -481,7 +482,7 @@ STATUS(){ ## REPLICATION CHECK ######################## - if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "xx" ]; then + if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "" ]; then if [ "${ST_ACTION}" != "check" ]; then echo -e "${idsST[Bold]}"; DIVIDER echo -e "${idsCL[Yellow]} Replication Status Between the Primary and Secondary Nodes${idsCL[Default]}"