From ddcbf8de71b95f3c1e06c81755df74661eedb89a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Feb 2019 09:08:39 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c9e8587b..89ea9055 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -600,6 +600,8 @@ LISTCERTS(){ SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}//g") CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certdir}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s'); DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS))); + + SUBJECTNAMES=`awk '{for(i=1; i<=NF; i++) if($i==", ") if(++count%3==0) $i=",\n"}1' ${SUBJECTNAMES}` declare -i cw; declare -i spc1; declare -i c c=0; cw=30; spc=''