Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-05 08:35:38 -06:00
parent 62574d6b63
commit 7b29c7c870

View File

@@ -106,12 +106,12 @@ LISTCERTS(){
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
DIVIDER true
echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}"
echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}"
if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
anid=1
for ALTNAME in "${SUBJECT_NAMES[@]}"; do
if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi
echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi
echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
anid=`expr $anid + 1`
done
fi