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