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=''