Update nodemgmt-scripts.sh
This commit is contained in:
@@ -613,11 +613,11 @@ LISTCERTS(){
|
||||
c=0; cw=30; spc=''
|
||||
spc1=${cw}-${#SUBJECT}
|
||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
if [ $DUEIN -gt $CERTEXPIRE ]; then
|
||||
date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
||||
else
|
||||
date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
|
||||
fi
|
||||
# if [ $DUEIN -gt $CERTEXPIRE ]; then
|
||||
# date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
||||
# else
|
||||
# date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
|
||||
# fi
|
||||
echo -e "${idsCL[Cyan]}${SUBJECT}${spc}${CERTDATE} ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
|
||||
done
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user