Update status.inc
This commit is contained in:
@@ -8,9 +8,11 @@ STATUS(){
|
|||||||
declare -i cw; declare -i spc1; declare -i c
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
|
|
||||||
if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then
|
if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then
|
||||||
ntypesel=(${ST_ACTION^^})
|
ntss=${ST_ACTION^^}
|
||||||
|
ntypesel=(${ntss})
|
||||||
ST_ACTION=${2}
|
ST_ACTION=${2}
|
||||||
else
|
else
|
||||||
|
ntss=""
|
||||||
ntypesel=(${NM_NODE_TYPES[@]})
|
ntypesel=(${NM_NODE_TYPES[@]})
|
||||||
fi
|
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
|
([ ! -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}" == "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
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user