From fd8c847eaa4975b4630695b404e0ef2f1dc7802e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 00:12:20 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a3acaad2..a371da46 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -107,14 +107,9 @@ LISTCERTS(){ DIVIDER true echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}" - if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then + #if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then + if [ "$SUBJECTNAMES" != "" ]; then echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}" - #anid=1 - #for ALTNAME in "${SUBJECT_NAMES[@]}"; do - # if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi - # echo -e "${alttitle} ${idsCL[Cyan]}${ALTNAME}${idsCL[Default]}" - # anid=`expr $anid + 1` - #done fi if [ $DUEIN -gt $CERTEXPIRE ]; then echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}" @@ -122,14 +117,7 @@ LISTCERTS(){ echo -e "Expiration Date: ${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}" fi echo "" - - - #if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then - # $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT},${SUBJECTNAMES2} - #else - # $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT} - #fi - #echo "" + done