Update run.sh

This commit is contained in:
2019-01-29 21:59:48 -06:00
parent 72848f1c54
commit 1059d7598d

2
run.sh
View File

@@ -21,7 +21,7 @@ if [ "$1" != "service" ] && [ "$1" != "status-check" ]; then
IFS=,; SERVICES2=(${SERVICES}); unset IFS
for srvc in "${SERVICES2[@]}"
do
if [[ "mysql,nginx,gitea,haproxy,keepalived" = *"${srvc}"* ]]; then spc=" "; else spc=""; fi
if [[ "mysql,nginx,gitea,haproxy,keepalived,maxscale" = *"${srvc}"* ]]; then spc=" "; else spc=""; fi
echo -en "${NM_SERVICES[${srvc}]} $spc"
if [ $(pgrep ${srvc} | wc -l) -gt "0" ]; then
echo -e "${idsCL[Green]}Running${idsCL[Default]}"