From 4a9a935140a7d821b3caea4ccfc101f82feb6833 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 28 Jan 2019 15:47:22 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e5484824..eef0f6d8 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -30,8 +30,7 @@ case "$1" in elif [ "$2" = "keepalived" ]; then SER='Keepalived' elif [ "$2" = "maxscale" ]; then SER='MaxScale' fi - #if [ "$3" = "stop" ]; then ADISP='Stopp'; else ADISP="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"; fi - ADISP=$3 + if [ "$3" = "stop" ]; then ADISP='Stopp'; else ADISP="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"; fi if [ "$3" = "start" ] && [ "$2" = "haproxy" ]; then TACT='restart'; else TACT="${3}"; fi echo -e "${idsCL[LightGreen]}[[${SER} ${ADISP}ing]]${idsCL[Default]}"