Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 14:57:10 -05:00
parent 4c9afbf2a4
commit efb93c5556

View File

@@ -77,7 +77,7 @@ STATUS(){
fi
for srvc in "${LOCAL_SERVICES[@]}"; do
if [ "${ST_ACTION}" != "check" ]; then
c=0; cw=22; spc=''
c=0; cw=26; spc=''
spc1=${cw}-${#NM_SERVICES[${srvc}]}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
@@ -166,7 +166,7 @@ STATUS(){
fi
if [ ${NOGOCHK} = true ]; then
if [ "${ST_ACTION}" != "check" ]; then
c=0; cw=22; spc=''
c=0; cw=26; spc=''
spc1=${cw}-${#NM_SERVICES[${srvc}]}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
@@ -284,7 +284,7 @@ STATUS(){
# timeout=`date --date='20 seconds' +%s`
for rcheck in "${!var2}"; do
if [ "${ST_ACTION}" != "check" ]; then
c=0; cw=22; spc=''
c=0; cw=26; spc=''
spc1=${cw}-${#REPL_DESC[${rcheck}]}
# if [ "${rcheck}" = "nextcloud-data" ] || [ "${rcheck}" = "nextcloud-www" ]; then
# timeout=`date --date='2 minutes' +%s`