Update sites.inc
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user