Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-04 22:11:22 -06:00
parent 6cc8ec1240
commit 9fd4e40ce8

View File

@@ -87,7 +87,7 @@ LISTCERTS(){
#DIVIDER true
for d in /etc/letsencrypt/live/*/ ; do
SUBJECTNAMES=$(openssl x509 -in ${d}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
IFS=' '
IFS='\n'
SUBJECTNAMES=(${SUBJECTNAMES})
unset IFS
echo "$d"