Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 22:01:15 -06:00
parent 5d2079e225
commit 2401cf17ae

View File

@@ -83,7 +83,7 @@ case "$1" in
nid=1
for nip in "${node_hosts[@]}"
do
echo -en "${idsCL[Cyan]}${STA}ing Node ${nid} ($nip)...${idsCL[Default]}"
echo -en "${STA}ing Node ${nid} ($nip)...${idsCL[Default]}"
ssh root@${nip} systemctl $3 $2
if [[ $(ssh root@${nip} ps -ef | grep -c ${2}) -ne 1 ]]; then
echo -e "${idsCL[Green]}OK${idsCL[Default]}"