Update nodemgmt-scripts.sh
This commit is contained in:
@@ -87,7 +87,7 @@ LISTCERTS(){
|
|||||||
#DIVIDER true
|
#DIVIDER true
|
||||||
for d in /etc/letsencrypt/live/*/ ; do
|
for d in /etc/letsencrypt/live/*/ ; do
|
||||||
SUBJECTNAMES=$(openssl x509 -in ${d}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
SUBJECTNAMES=$(openssl x509 -in ${d}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
IFS=' '
|
IFS='\n'
|
||||||
SUBJECTNAMES=(${SUBJECTNAMES})
|
SUBJECTNAMES=(${SUBJECTNAMES})
|
||||||
unset IFS
|
unset IFS
|
||||||
echo "$d"
|
echo "$d"
|
||||||
|
|||||||
Reference in New Issue
Block a user