Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-27 11:05:10 -05:00
parent 1a817d43b1
commit 753f9ffe32

View File

@@ -1014,8 +1014,9 @@ LISTCERTS(){
c=0; spc=''
spc1=${cw}-${#SUBJECT}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
if [ $DUEIN -gt $CERTEXPIRE ]; then
if [ $CERTEXPIRE -le $DUEIN ]; then
date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
SENDNOTICE "SSL Expiring" "${SUBJECT} expires on ${date}" 1
else
date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
fi