Update nodemgmt-scripts.sh
This commit is contained in:
@@ -152,7 +152,12 @@ LISTCERTS(){
|
|||||||
spc="${spc} "
|
spc="${spc} "
|
||||||
c=`expr $c + 1`
|
c=`expr $c + 1`
|
||||||
done
|
done
|
||||||
echo -e "${SUBJECT}${spc}$(date -d @${CERTEXPIRE} '+%m-%d-%Y') ${SUBJECTNAMES}"
|
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}${date} ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user