Update nodemgmt-scripts.sh
This commit is contained in:
@@ -743,10 +743,14 @@ SETUPSSH(){
|
||||
if [[ ${RUN_NODE_IP} != *"${nip}"* ]]; then
|
||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER . lightCyan 40
|
||||
echo -e "\n${idsCL[LightCyan]}Copying Public SSH Key ...${idsCL[Default]}"
|
||||
ssh-copy-id root@${nip}
|
||||
echo -en "\n${idsCL[LightCyan]}Verifying NodeMgmt ... ${idsCL[Default]}"
|
||||
NODEUPDATE ${nip} verify "ssh"
|
||||
if [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
|
||||
echo -e "\n${idsCL[LightCyan]}Copying Public SSH Key ...${idsCL[Default]}"
|
||||
ssh-copy-id root@${nip}
|
||||
echo -en "\n${idsCL[LightCyan]}Verifying NodeMgmt ... ${idsCL[Default]}"
|
||||
NODEUPDATE ${nip} verify "ssh"
|
||||
else
|
||||
echo -e "\n${idsCL[Yellow]}Host is offline${idsCL[Default]}"
|
||||
fi
|
||||
echo
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user