From 753f9ffe32e6606c75545304c3634351d1c1a6b0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 11:05:10 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3f43fbb2..eb102d27 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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