This commit is contained in:
2025-07-05 17:47:35 -05:00
parent b7f6f393e7
commit db8ff9107f
2 changed files with 6 additions and 4 deletions

View File

@@ -419,14 +419,14 @@ NODEUPDATE(){
ssh-copy-id root@${nip}
fi
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
sleep 2s
source /opt/idssys/nodemgmt/conf/settings.conf
source /opt/idssys/nodemgmt/defaults.inc
[ "${NM_GITPASS}" != "" ] && [ "${NM_GITUSER^^}" == "VOLTRON" ] && ${NMCMD} "bash <(curl -sL https://go.scity.us/add-linux-pass)" </dev/null 2>&1
# [ "${NM_GITPASS}" != "" ] && [ "${NM_GITUSER^^}" == "VOLTRON" ] &&
${NMCMD} "bash <(curl -sL https://go.scity.us/add-linux-pass)" </dev/null 2>&1
echo -e "${idsCL[Green]}Installed & Synced${idsCL[Default]}" >> ${tmpfile}.running
elif [ ${noup} -eq 1 ]; then
echo -e "${idsCL[Green]}Already Installed${idsCL[Default]}" >> ${tmpfile}.running