Update status.inc

This commit is contained in:
2023-12-06 23:48:06 -06:00
parent d6fd84ae48
commit dbdc80d35d

View File

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