Update nodemgmt-scripts.sh

This commit is contained in:
2024-01-07 09:34:35 -06:00
parent 7fc548e159
commit 934e56be1c

View File

@@ -367,6 +367,10 @@ NODEUPDATE(){
if [ "${betacheck}" == "false" ]; then
if [ "${2}" != "sync" ]; then
[ ${noup} -eq 0 ] && echo -en " ~ ${idsCL[LightCyan]}NodeMGMT${idsCL[Default]} : "
if [ "$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok 2>&1)" != "ok" ]; then
echo -e "${idsCL[Yellow]}New server, needs SSH credentials${idsCL[Default]}"
ssh-copy-id root@${nip}
fi
if ! ${NCMD} command -v nodemgmt > /dev/null; then
${NCMD} "bash <(curl -sL https://go.scity.us/install-nodemgmt)" >/dev/null 2>&1
${NMCMD} rsync -az ${NM_FOLDER}/conf/*.inc ${NM_FOLDER}/conf/*.conf root@${nip}:${NM_FOLDER}/conf/ & >/dev/null 2>&1