Update status.inc

This commit is contained in:
2023-12-06 22:02:22 -06:00
parent 367039603d
commit cc241c9acf

View File

@@ -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