Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
a348f08d06
commit
a45a4e8b21
1 file changed
+1
-1
+1
-1
@@ -41,7 +41,7 @@ case "$1" in
|
|||||||
else
|
else
|
||||||
NCMD="ssh root@${nip}"
|
NCMD="ssh root@${nip}"
|
||||||
fi
|
fi
|
||||||
echo -en "${ADISP}ing Node ${nid} ($nip)...${idsCL[Default]}"
|
echo -en "${ADISP}ing on Node ${nid} ($nip)...${idsCL[Default]}"
|
||||||
$NCMD systemctl $3 $2
|
$NCMD systemctl $3 $2
|
||||||
if [[ $(${NCMD} pgrep ${2} | wc -l) -gt "0" ]]; then
|
if [[ $(${NCMD} pgrep ${2} | wc -l) -gt "0" ]]; then
|
||||||
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
||||||
|
|||||||
Reference in new issue
Block a user