From a8bd92f12601331d20a18906404871e63705bb8a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 00:08:34 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index bf2087d6..5d62b09b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -85,7 +85,7 @@ CERTRENEW(){ LISTCERTS(){ #DIVIDER true - for certdir in /etc/letsencrypt/temp/*/ ; do + for certdir in /etc/letsencrypt/live/*/ ; do SUBJECT=$(openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV) SUBJECTNAMES=$(openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV) SUBJECTNAMES=${SUBJECTNAMES//$'\n'/,} @@ -116,12 +116,12 @@ LISTCERTS(){ echo "" - if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then - $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT},${SUBJECTNAMES2} - else - $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT} - fi - echo "" + #if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then + # $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT},${SUBJECTNAMES2} + #else + # $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT} + #fi + #echo "" done