bin/check-key-expiry
branchrsync
changeset 12 cae9d212242f
parent 9 224ac4a5db4d
child 13 d2522848cb73
--- 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