From 4cdad7547588180089bc2e540303c35592157f46 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 3 Apr 2019 19:53:10 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 87cc8fac..b0ed01d2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -369,15 +369,15 @@ NEWCERT(){ echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}" echo "" - echo -en "${idsCL[LightYellow]}Stopping other Webservers... ${idsCL[Default]}" - 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 stop` - # SERVICE nginx stop ${nip} - fi - done - echo -e "${idsCL[Green]}Completed${idsCL[Default]}" - echo + # echo -en "${idsCL[LightYellow]}Stopping other Webservers... ${idsCL[Default]}" + # 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 stop` + # # SERVICE nginx stop ${nip} + # fi + # done + # echo -e "${idsCL[Green]}Completed${idsCL[Default]}" + # echo #$CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT} $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT} @@ -424,15 +424,15 @@ NEWCERT(){ echo -e "${idsCL[Red]}Certificate could not be created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Red]}'...${idsCL[Default]}" fi - echo - echo -en "${idsCL[LightYellow]}Starting other Webservers... ${idsCL[Default]}" - 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` - # SERVICE nginx start ${nip} - fi - done - echo -e "${idsCL[Green]}Completed${idsCL[Default]}" + # echo + # echo -en "${idsCL[LightYellow]}Starting other Webservers... ${idsCL[Default]}" + # 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` + # # SERVICE nginx start ${nip} + # fi + # done + # echo -e "${idsCL[Green]}Completed${idsCL[Default]}" echo "" if [ -z $action ] || [ "${action}" = "gui" ]; then