From 70483861114ced3022f4a0b7f9c857cd3c212ce0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 12:21:05 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 23845151..50b49519 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -119,7 +119,9 @@ NIGHTLYRENEW(){ } LISTCERTS(){ - DIVIDER true + if [ -z $action ] || [ "${action}" = "gui" ]; then + DIVIDER true + fi 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)