Update nodemgmt-scripts.sh
This commit is contained in:
@@ -34,7 +34,7 @@ case "$1" in
|
|||||||
do
|
do
|
||||||
echo -en "${ADISP}ing Node ${nid} ($nip)...${idsCL[Default]}"
|
echo -en "${ADISP}ing Node ${nid} ($nip)...${idsCL[Default]}"
|
||||||
ssh root@${nip} systemctl $3 $2
|
ssh root@${nip} systemctl $3 $2
|
||||||
if [[ $(is_service_runing ${nip} ${2}) = "0" ]]; then
|
if [[ $(is_service_running ${nip} ${2}) = "0" ]]; then
|
||||||
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
||||||
else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user