Update mm-scripts.sh

This commit is contained in:
2022-01-23 15:14:58 -06:00
parent f68de0c8b1
commit fc55d064a1

View File

@@ -94,7 +94,9 @@ MMSTOP(){
}
MMSTATUS(){
for srvc in "${SERVICES_CHECK[@]}"; do
statusArray=("openvpn")
statusArray+=$SERVICES_CHECK
for srvc in "${statusArray[@]}"; do
c=0; cw=36 spc=''
spc1=$((${cw}-${#NM_SERVICES[${srvc}]}))
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done