From 70bc6c396219b4d55241256326574e9c577ba90d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Jan 2019 21:20:16 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9b7f022a..d70a84c7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -81,22 +81,22 @@ case "$1" in echo -en "${idsCL[Cyan]}${STA}ing Node 1...${idsCL[Default]}" ssh root@10.5.10.51 systemctl $3 $2 if [[ $(ssh root@10.5.10.51 ps -ef | grep -c xyz) -ne 1 ]]; then - echo -en "${idsCL[Cyan]}${STA}ing Node 1... ${idsCL[Green]}OK${idsCL[Default]}" - else echo -en "${idsCL[Cyan]}${STA}ing Node 1... ${idsCL[Red]}ERROR${idsCL[Default]}" + echo -e "${idsCL[Green]}OK${idsCL[Default]}" + else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}" fi echo -en "${idsCL[Cyan]}${STA}ing Node 3...${idsCL[Default]}" ssh root@10.5.10.52 systemctl $3 $2 if [[ $(ssh root@10.5.10.52 ps -ef | grep -c xyz) -ne 1 ]]; then - echo -en "${idsCL[Cyan]}${STA}ing Node 1... ${idsCL[Green]}OK${idsCL[Default]}" - else echo -en "${idsCL[Cyan]}${STA}ing Node 1... ${idsCL[Red]}ERROR${idsCL[Default]}" + echo -e "${idsCL[Green]}OK${idsCL[Default]}" + else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}" fi echo -en "${idsCL[Cyan]}${STA}ing Node 3...${idsCL[Default]}" ssh root@10.5.10.53 systemctl $3 $2 if [[ $(ssh root@10.5.10.53 ps -ef | grep -c xyz) -ne 1 ]]; then - echo -en "${idsCL[Cyan]}${STA}ing Node 1... ${idsCL[Green]}OK${idsCL[Default]}" - else echo -en "${idsCL[Cyan]}${STA}ing Node 1... ${idsCL[Red]}ERROR${idsCL[Default]}" + echo -e "${idsCL[Green]}OK${idsCL[Default]}" + else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}" fi echo -e "${idsCL[Green]}${SER} has been ${STA}ed${idsCL[Default]}" exit 0