Update nodemgmt-scripts.sh

This commit is contained in:
2023-07-04 11:16:09 -05:00
parent eca7d4ab7f
commit ef3df90ab9

View File

@@ -800,11 +800,25 @@ NODEUPDATE() {
NODE=${NM_HOSTNAMES[${nip}]}[${nip}]
c=0; cw=40; spca=''; spc1=${cw}-${#NODE}; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
echo -en "Updating ${NODE}${spca} ~ ${idsCL[LightCyan]}NodeMGMT${idsCL[Default]} : "
${NCMD} "nodemgmt update q" >/dev/null 2>&1
if ! ${NCMD} command -v nodemgmt > /dev/null; then
${NCMD} bash <(curl -sL https://go.scity.us/install-nodemgmt) >/dev/null 2>&1
else
${NCMD} "nodemgmt update q" >/dev/null 2>&1
fi
echo -en "${idsCL[Green]}COMPLETE${idsCL[Default]} ~ ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : "
${NCMD} "runup runup" >/dev/null 2>&1
if ! ${NCMD} command -v runup > /dev/null; then
${NCMD} bash <(curl -sL https://go.scity.us/install-linupx) >/dev/null 2>&1
else
${NCMD} "runup runup" >/dev/null 2>&1
fi
echo -en "${idsCL[Green]}COMPLETE${idsCL[Default]} ~ ${idsCL[LightCyan]}Sync Defaults${idsCL[Default]} : "
ssh -tq root@${nmip} "scp ${NM_FOLDER}/defaults.local.inc root@${nip}:${NM_FOLDER}/" >/dev/null 2>&1
echo -e "${idsCL[Green]}COMPLETE${idsCL[Default]}"
nid=`expr $nid + 1`
done