Update status.inc

This commit is contained in:
2023-10-25 19:03:52 -05:00
parent 0cdc5e548a
commit 018a5f21d2

View File

@@ -2,7 +2,7 @@
STATUS(){ STATUS(){
start=`date +%s` start=`date +%s`
cw=40; PRI_cw=${PRI_CW};
ST_ACTION=${1} ST_ACTION=${1}
if [ "${ST_ACTION}" = "sync" ]; then if [ "${ST_ACTION}" = "sync" ]; then
@@ -61,7 +61,7 @@ STATUS(){
for srvc in "${LOCAL_SERVICES[@]}"; do for srvc in "${LOCAL_SERVICES[@]}"; do
if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "check" ]; then
if [ "${ST_ACTION}" != "report" ]; then if [ "${ST_ACTION}" != "report" ]; then
c=0; spc='' c=0; cw=${PRI_CW}; spc=''
spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]} spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
else else
@@ -183,7 +183,7 @@ STATUS(){
if [ ${NOGOCHK} == true ]; then if [ ${NOGOCHK} == true ]; then
if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "check" ]; then
if [ "${ST_ACTION}" != "report" ]; then if [ "${ST_ACTION}" != "report" ]; then
c=0; cw=40; spc=''; spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done c=0; cw=${PRI_CW}; spc=''; spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
else else
spc=' ' spc=' '
fi fi
@@ -248,7 +248,7 @@ STATUS(){
# if [ ${NOGOCHK} = true ]; then # if [ ${NOGOCHK} = true ]; then
# if [ "${ST_ACTION}" != "check" ]; then # if [ "${ST_ACTION}" != "check" ]; then
# if [ "${ST_ACTION}" != "report" ]; then # if [ "${ST_ACTION}" != "report" ]; then
# c=0; cw=40; spc='' # c=0; cw=${PRI_CW}; spc=''
# spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]} # spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}
# until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done # until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
# else # else
@@ -341,7 +341,7 @@ STATUS(){
if [ ${NOGOCHK} == true ]; then if [ ${NOGOCHK} == true ]; then
if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "check" ]; then
if [ "${ST_ACTION}" != "report" ]; then if [ "${ST_ACTION}" != "report" ]; then
c=0; spc='' c=0; cw=${PRI_CW}; spc=''
spc1=`expr ${cw} - ${#NM_DOCKER_DESC[${docker}]}` spc1=`expr ${cw} - ${#NM_DOCKER_DESC[${docker}]}`
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
else else
@@ -489,7 +489,7 @@ STATUS(){
for rcheck in "${!var2}"; do for rcheck in "${!var2}"; do
if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "check" ]; then
if [ "${ST_ACTION}" != "report" ]; then if [ "${ST_ACTION}" != "report" ]; then
c=0; spc=''; spc1=${cw}-${#NM_REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done c=0; cw=${PRI_CW}; spc=''; spc1=${cw}-${#NM_REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
else else
spc=' ' spc=' '
fi fi