--- a/bin/check-key-expiry Thu Dec 23 14:58:32 2010 +0100
+++ b/bin/check-key-expiry Mon Jan 03 13:11:13 2011 +0100
@@ -2,7 +2,7 @@
NOTIFY='edv@schlittermann.de'
WARNTIME=$(expr 30 \* 24 \* 60 \* 60) # seconds
-EXPIRY=$(date -d $(LC_ALL= LANG= gpg -k apt.schlittermann.de|grep -io 'expires:[^]]\+'|grep -io '[[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}') +%s)
+EXPIRY=$(date -d $(LC_ALL= LANG= gpg -k --with-colons apt.schlittermann.de|grep '^pub'|cut -d: -f7) +%s)
TODAY=$(date +%s)
#echo $EXPIRY
#echo $TODAY