From 0e8cf31c1e7b026b7749bd102d194784be4d4224 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 1 Apr 2019 23:23:36 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3dc04785..d15f05c6 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -390,7 +390,7 @@ NEWCERT(){ timeout=`date --date='2 minutes' +%s` until [ "${checked}" = "" ]; do tchecked='' - for nip in "${MYSQL_HOSTS[@]}"; do + for nip in "${WEB_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' else NCMD="ssh root@${nip}" fi @@ -417,11 +417,12 @@ NEWCERT(){ echo "" echo -e "${idsCL[Red]}Certificate could not be created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Red]}'...${idsCL[Default]}" fi - for nip in "${MYSQL_HOSTS[@]}"; do - if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then - `ssh root@${nip} service nginx start` - fi - done + # for nip in "${WEB_HOSTS[@]}"; do + # if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then + # `ssh root@${nip} service nginx start` + # fi + # done + ### SERVICE nginx reload echo "" if [ -z $action ] || [ "${action}" = "gui" ]; then DIVIDER true