diff --git a/inc/status.inc b/inc/status.inc index 76b6ce96..beb57c8a 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -8,9 +8,11 @@ STATUS(){ declare -i cw; declare -i spc1; declare -i c if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then - ntypesel=(${ST_ACTION^^}) + ntss=${ST_ACTION^^} + ntypesel=(${ntss}) ST_ACTION=${2} else + ntss="" ntypesel=(${NM_NODE_TYPES[@]}) fi @@ -20,7 +22,7 @@ STATUS(){ ([ ! -f ${NM_TMPFOLDER}/.replcheck ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replcheck)) -ge 300 ]) && REPLRUN=1 || REPLRUN=0 # if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "" ]; then - if [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "" ] || ([ "${ST_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]); then + if [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "" ] || ([ "${ST_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]) || ([ "${ntss}" != "" ] && [ "${NM_REPL_CHECK[${ntss}]}" != "" ]); then if [ "${ST_ACTION}" != "check" ]; then echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}" fi