Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 21:29:17 -06:00
parent bc5d97ef9e
commit aac370574b

View File

@@ -85,7 +85,7 @@ case "$1" in
else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
fi
echo -en "${idsCL[Cyan]}${STA}ing Node 3...${idsCL[Default]}"
echo -en "${idsCL[Cyan]}${STA}ing Node 2...${idsCL[Default]}"
ssh root@10.5.10.52 systemctl $3 $2
if [[ $(ssh root@10.5.10.52 ps -ef | grep -c ${2}) -ne 1 ]]; then
echo -e "${idsCL[Green]}OK${idsCL[Default]}"