update
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## Comma-seperated for multiple sites
|
## Comma-seperated for multiple sites
|
||||||
local COPYCERT="hostgname.domain.com"
|
local COPYCERT="hostname.domain.com"
|
||||||
|
|
||||||
## Comma-seperated, in same order as above
|
## Comma-seperated, in same order as above
|
||||||
local CERTFOLDER="/local/cert/path"
|
local CERTFOLDER="/local/cert/path"
|
||||||
|
|
||||||
## Commands to run if cert is replaced
|
|
||||||
COPYCERTS_POST_COMMANDS(){
|
COPYCERTS_POST_COMMANDS(){
|
||||||
|
##
|
||||||
|
## Commands to run if cert is replaced
|
||||||
|
##
|
||||||
SERVICE_MGMT nginx reload
|
SERVICE_MGMT nginx reload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -419,14 +419,14 @@ NODEUPDATE(){
|
|||||||
ssh-copy-id root@${nip}
|
ssh-copy-id root@${nip}
|
||||||
fi
|
fi
|
||||||
if ! ${NCMD} command -v nodemgmt > /dev/null 2>&1; 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
|
${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/*.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
|
${NMCMD} rsync -az ${NM_FOLDER}/conf/powerwall ${NM_FOLDER}/conf/*.conf root@${nip}:${NM_FOLDER}/conf/ </dev/null 2>&1
|
||||||
sleep 2s
|
sleep 2s
|
||||||
source /opt/idssys/nodemgmt/conf/settings.conf
|
source /opt/idssys/nodemgmt/conf/settings.conf
|
||||||
source /opt/idssys/nodemgmt/defaults.inc
|
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
|
echo -e "${idsCL[Green]}Installed & Synced${idsCL[Default]}" >> ${tmpfile}.running
|
||||||
elif [ ${noup} -eq 1 ]; then
|
elif [ ${noup} -eq 1 ]; then
|
||||||
echo -e "${idsCL[Green]}Already Installed${idsCL[Default]}" >> ${tmpfile}.running
|
echo -e "${idsCL[Green]}Already Installed${idsCL[Default]}" >> ${tmpfile}.running
|
||||||
|
|||||||
Reference in New Issue
Block a user