Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 11:59:11 -06:00
parent 9f52c83d93
commit 6412b20dcf

View File

@@ -131,22 +131,23 @@ LISTCERTS(){
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS))); DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
DIVIDER true 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 #if [ "$SUBJECTNAMES" != "" ]; then
if [ "$SUBJECTNAMES" != "" ]; then # echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}" #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 "" cw=30
spc1=${cw}-${#SUBJECT}
echo -e "${SUBJECT}${spc1}$(date -d @${CERTEXPIRE} '+%m-%d-%Y') ${SUBJECTNAMES}"
done done
if [ -z $action ] || [ "${action}" = "gui" ]; then if [ -z $action ] || [ "${action}" = "gui" ]; then
DIVIDER true
ENTER2CONTINUE ENTER2CONTINUE
fi fi
echo "" echo ""