Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-05 08:36:17 -06:00
parent 7b29c7c870
commit d872a85101

View File

@@ -110,15 +110,15 @@ LISTCERTS(){
if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
anid=1 anid=1
for ALTNAME in "${SUBJECT_NAMES[@]}"; do for ALTNAME in "${SUBJECT_NAMES[@]}"; do
if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi
echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}" echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
anid=`expr $anid + 1` anid=`expr $anid + 1`
done done
fi fi
if [ $DUEIN -gt $CERTEXPIRE ]; then if [ $DUEIN -gt $CERTEXPIRE ]; then
echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}" echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
else else
echo -e "Expiration Date: ${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}" echo -e "Expiration Date: ${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
fi fi
echo "" echo ""