diff --git a/inc/sites.inc b/inc/sites.inc index ded56d1e..a6eb9b70 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -549,6 +549,7 @@ SITEINFO(){ SUBJECTNAMES=$(openssl x509 -in ${certpath}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV) CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certpath}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s'); if [ "${SUBJECTNAMES}" != "" ]; then + echo "HERE: ${SUBJECTNAMES}" SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, } # SUBJECTNAMES=$(echo $${SUBJECTNAMES} | sed "s/\n/, /g") SUBJECTNAMES=$(echo ${SUBJECTNAMES} | sed "s/${SUBJECT}, //g")