Update status.inc
This commit is contained in:
@@ -3,16 +3,18 @@ STATUS(){
|
||||
start=$(date +%s)
|
||||
log_start=$(date "+%Y-%m-%d %H:%M:%S")
|
||||
|
||||
if [ "${1}" == "status" ] && [ "${2}" == "report" ]; then
|
||||
if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then
|
||||
ntss=${ST_ACTION^^}
|
||||
ntypesel=(${ntss})
|
||||
ST_ACTION=${2}
|
||||
else
|
||||
ntss=""
|
||||
ntypesel=(${NM_NODE_TYPES[@]})
|
||||
[ "${1}" == "sync" ] && ST_ACTION=repl || ST_ACTION=${1}
|
||||
fi
|
||||
if [ "${1}" == "report" ]; then
|
||||
ST_ACTION=${1}
|
||||
ntypesel=(${NM_NODE_TYPES[@]})
|
||||
# if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then
|
||||
# ntss=${ST_ACTION^^}
|
||||
# ntypesel=(${ntss})
|
||||
# ST_ACTION=${2}
|
||||
# else
|
||||
# ntss=""
|
||||
# ntypesel=(${NM_NODE_TYPES[@]})
|
||||
# [ "${1}" == "sync" ] && ST_ACTION=repl || ST_ACTION=${1}
|
||||
# fi
|
||||
else
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user