Update status.inc
This commit is contained in:
@@ -9,8 +9,26 @@ STATUS(){
|
|||||||
ST_ACTION=repl
|
ST_ACTION=repl
|
||||||
fi
|
fi
|
||||||
declare -i cw; declare -i spc1; declare -i c
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
|
|
||||||
|
ntypesel=""
|
||||||
|
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||||
|
if [ "${ST_ACTION}" == "${NTYPE}" ]; then
|
||||||
|
ntypesel=${NTYPE}
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ "${ntypesel}" != "" ]; then
|
||||||
|
ntypesel=(${ntypesel})
|
||||||
|
else
|
||||||
|
ntypesel=$NM_NODE_TYPES[@]
|
||||||
|
fi
|
||||||
|
|
||||||
|
for NTYPE in "${!ntypesel}"; do
|
||||||
|
echo "HERE: $NTYPE"
|
||||||
|
done
|
||||||
|
|
||||||
########################
|
########################
|
||||||
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}" == "xx" ]; 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
|
||||||
@@ -112,22 +130,6 @@ STATUS(){
|
|||||||
if [ "${ST_ACTION}" != "check" ]; then echo; fi
|
if [ "${ST_ACTION}" != "check" ]; then echo; fi
|
||||||
fi
|
fi
|
||||||
########################
|
########################
|
||||||
ntypesel=""
|
|
||||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
|
||||||
if [ "${ST_ACTION}" == "${NTYPE}" ]; then
|
|
||||||
ntypesel=${NTYPE}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ "${ntypesel}" != "" ]; then
|
|
||||||
ntypesel=(${ntypesel})
|
|
||||||
else
|
|
||||||
ntypesel=$NM_NODE_TYPES[@]
|
|
||||||
fi
|
|
||||||
|
|
||||||
for NTYPE in "${!ntypesel}"; do
|
|
||||||
echo "HERE: $NTYPE"
|
|
||||||
done
|
|
||||||
|
|
||||||
for NTYPE in "${NM_NODE_TYPESsss[@]}"; do
|
for NTYPE in "${NM_NODE_TYPESsss[@]}"; do
|
||||||
nid=1
|
nid=1
|
||||||
|
|||||||
Reference in New Issue
Block a user