Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 00:12:20 -06:00
parent ec1ae88302
commit fd8c847eaa

View File

@@ -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