Update nodemgmt-scripts.sh
This commit is contained in:
@@ -759,8 +759,10 @@ NODEUPDATE() {
|
|||||||
if [ "${2}" != "sync" ]; then
|
if [ "${2}" != "sync" ]; then
|
||||||
c=0; cw=22; spca=''; spc1=${cw}-7; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
|
c=0; cw=22; spca=''; spc1=${cw}-7; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
|
||||||
echo -en "Updating Node-Manager[$nmip]${spca} ~ ${idsCL[LightCyan]}NodeMGMT${idsCL[Default]} : "
|
echo -en "Updating Node-Manager[$nmip]${spca} ~ ${idsCL[LightCyan]}NodeMGMT${idsCL[Default]} : "
|
||||||
ssh -tq root@${nmip} "nodemgmt update q" >/dev/null 2>&1
|
ssh -tq root@${nmip} "nodemgmt update"
|
||||||
echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
|
# ssh -tq root@${nmip} "nodemgmt update q" >/dev/null 2>&1
|
||||||
|
# echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
|
||||||
|
|
||||||
# echo -en " ~ ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : "
|
# echo -en " ~ ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : "
|
||||||
# ssh -tq root@${nmip} "runup runup" >/dev/null 2>&1
|
# ssh -tq root@${nmip} "runup runup" >/dev/null 2>&1
|
||||||
# echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
|
# echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
|
||||||
@@ -789,8 +791,9 @@ NODEUPDATE() {
|
|||||||
ssh -tq root@${nmip} rsync -az ${NM_FOLDER}/defaults.local.inc root@${nip}:${NM_FOLDER}/ >/dev/null 2>&1
|
ssh -tq root@${nmip} rsync -az ${NM_FOLDER}/defaults.local.inc root@${nip}:${NM_FOLDER}/ >/dev/null 2>&1
|
||||||
echo -e "${idsCL[Green]}Installed & Synced${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Installed & Synced${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
${NCMD} "nodemgmt update q" >/dev/null 2>&1
|
${NCMD} "nodemgmt update"
|
||||||
echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
|
# ${NCMD} "nodemgmt update q" >/dev/null 2>&1
|
||||||
|
# echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo -en " ~ ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : "
|
# echo -en " ~ ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : "
|
||||||
|
|||||||
Reference in New Issue
Block a user