Update nodemgmt-scripts.sh
This commit is contained in:
@@ -744,8 +744,14 @@ SETUPSSH(){
|
|||||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[Default]}"
|
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[Default]}"
|
||||||
DIVIDER . lightCyan 40
|
DIVIDER . lightCyan 40
|
||||||
if [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
|
if [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
|
||||||
echo -e "\n${idsCL[LightCyan]}Copying Public SSH Key ...${idsCL[Default]}"
|
echo -en "\n${idsCL[LightCyan]}Checking for Public SSH Key ... ${idsCL[Default]}"
|
||||||
ssh-copy-id root@${nip}
|
if [ "$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok 2>&1)" == "ok" ]; then
|
||||||
|
echo -e "\n${idsCL[Green]}Already Installed${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "\n${idsCL[Yellow]}Copying to Host ...${idsCL[Default]}"
|
||||||
|
ssh-copy-id root@${nip}
|
||||||
|
fi
|
||||||
|
|
||||||
echo -en "\n${idsCL[LightCyan]}Verifying NodeMgmt ... ${idsCL[Default]}"
|
echo -en "\n${idsCL[LightCyan]}Verifying NodeMgmt ... ${idsCL[Default]}"
|
||||||
NODEUPDATE ${nip} verify "ssh"
|
NODEUPDATE ${nip} verify "ssh"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user