bin/check-key-expiry
branchrsync
changeset 40 5f159c41e8a3
parent 39 c2e97355a239
child 41 40df28fd3562
--- a/bin/check-key-expiry	Tue Apr 17 14:22:44 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-NOTIFY='edv@schlittermann.de'
-WARNTIME=$(expr 30 \* 24 \* 60 \* 60) # seconds
-EXPIRY=$(date -d $(LC_ALL= LANG= gpg -k --with-colons apt.schlittermann.de|grep '^pub'|cut -d: -f7) +%s)
-TODAY=$(date +%s)
-
-if [[ $(( $EXPIRY - $TODAY )) -le $WARNTIME ]]; then
-  ( echo Subject: apt.schlittermann.de Archive Signing Key is about to expire - please extend expiry date; gpg -k apt.schlittermann.de ) | /usr/sbin/sendmail $NOTIFY
-fi