update
This commit is contained in:
@@ -39,7 +39,7 @@ NEWCERT(){
|
||||
else
|
||||
echo
|
||||
echo -en "${idsCL[LightYellow]}Waiting for Cert replication across the nodes... ${idsCL[Default]}"
|
||||
for nip in "${LB_HOSTS[@]}"; do
|
||||
for nip in "${NM_HOSTS['LB'][@]}"; do
|
||||
checkhost=$(CHECK_HOST ${nip})
|
||||
if [ "${checkhost}" != "false" ]; then
|
||||
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
|
||||
@@ -68,7 +68,7 @@ NEWCERT(){
|
||||
|
||||
# echo
|
||||
# echo -en "${idsCL[LightYellow]}Starting other Webservers... ${idsCL[Default]}"
|
||||
# for nip in "${WEB_HOSTS[@]}"; do
|
||||
# for nip in "${NM_HOSTS['WEB'][@]}"; do
|
||||
# if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
|
||||
# `ssh root@${nip} service nginx start`
|
||||
# # SERVICE nginx start ${nip}
|
||||
@@ -185,7 +185,7 @@ LISTCERTS(){
|
||||
done
|
||||
unset IFS
|
||||
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
||||
NCMD="ssh root@${LB_HOSTS[0]}"
|
||||
NCMD="ssh root@${NM_HOSTS['LB'][0]}"
|
||||
#${NCMD} rm -f /tmp/ssllist
|
||||
#${NCMD} 'for certdir in ${NM_CERTPATH}/live/*/ ; do echo $certdir; done' > /tmp/ssllist
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user