diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8f939288..449fec3e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -118,19 +118,19 @@ case "$1" in fi echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}" - echo -e "Node: ${nip}" + echo -e "Node: ${nip}" for srvc in "${NODE_SERVICES[@]}" do - if [ "${srvc}" = "mysql" ]; then SER='MySQL ' - elif [ "${srvc}" = "nginx" ]; then SER='NGINX ' - elif [ "${srvc}" = "gogs" ]; then SER='Gogs ' - elif [ "${srvc}" = "haproxy" ]; then SER='HAProxy' - elif [ "${srvc}" = "keepalived" ]; then SER='Keepalived' - elif [ "${srvc}" = "maxscale" ]; then SER='MaxScale' + if [ "${srvc}" = "mysql" ]; then SER='MySQL: ' + elif [ "${srvc}" = "nginx" ]; then SER='NGINX: ' + elif [ "${srvc}" = "gogs" ]; then SER='Gogs: ' + elif [ "${srvc}" = "haproxy" ]; then SER='HAProxy:' + elif [ "${srvc}" = "keepalived" ]; then SER='Keepalived:' + elif [ "${srvc}" = "maxscale" ]; then SER='MaxScale:' else SER="${2}" fi - echo -en "${SER}: " + echo -en "${SER} " if [ $(${NCMD} pgrep ${srvc} | wc -l) -gt "0" ]; then echo -e "${idsCL[Green]}Running${idsCL[Default]}" else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"