Update mm-scripts.sh

This commit is contained in:
2022-01-23 14:48:04 -06:00
parent 9d41e7bfdf
commit deabce585f

View File

@@ -78,12 +78,8 @@ MMSTOP(){
MMSTATUS(){
for srvc in "${SERVICES_CHECK[@]}"; do
c=0; cw=22; spc=''
spc1=${cw} - ${#NM_SERVICES[${srvc}]}
echo $spc1
spc1=${cw}-${#NM_SERVICES[${srvc}]}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo $srvc
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
if [ "$(systemctl is-active ${srvc})" != "active" ]; then