Update nodemgmt-scripts.sh

This commit is contained in:
2025-04-26 08:30:52 -05:00
parent 39124d617b
commit 572f307889

View File

@@ -418,7 +418,8 @@ NODEUPDATE(){
echo -e "${idsCL[Yellow]}[${nip}] New server, needs SSH credentials${idsCL[Default]}"
ssh-copy-id root@${nip}
fi
if ! ${NCMD} command -v nodemgmt < /dev/null; then
if ! ${NCMD} command -v nodemgmt < /dev/null 2>&1; then
echo 'yes'
${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
${NMCMD} rsync -az ${NM_FOLDER}/conf/powerwall ${NM_FOLDER}/conf/*.conf root@${nip}:${NM_FOLDER}/conf/ </dev/null 2>&1