diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 29a98ead..edac1701 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -371,12 +371,13 @@ NEWCERT(){ for nip in "${WEB_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then + echo "restarting ${nip}" `ssh root@${nip} service nginx stop` fi done - $CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT} - # $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT} + #$CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT} + $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT} if [ -f /etc/letsencrypt/live/${MAIN_CERT}/cert.pem ]; then chown -R root:letsencrypt /etc/letsencrypt chmod -R 6775 /etc/letsencrypt