From 2adf0455def883a414f0870217747b1ee4895ea9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Mar 2019 00:17:44 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 4b84b9a0..4d075808 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1336,8 +1336,13 @@ SERVICE(){ echo -e "${idsCL[Red]}(${2}) is not an allowed service action.${idsCL[Default]}" exit 1 fi - if [ "$2" = "start" ] && [ "$1" = "haproxy" ]; then TACT='restart'; else TACT="${2}"; fi - + if [ "$2" = "start" ] && [ "$1" = "haproxy" ]; then + TACT='restart' + else + TACT="${2}" + fi + + echo echo -e "${idsCL[LightGreen]}[[${NM_SERVICES[${1}]} ${NM_SRVCOPTS[${2}]}ing]]${idsCL[Default]}" echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"