From ca7e3433e701115852b7f45b6e8916e1e8d700d2 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 3 Nov 2016 19:16:31 +0000 Subject: Submit signing keys to keyservers after generation. Signed-off-by: Chris Lamb Signed-off-by: Holger Levsen --- update_jdn.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/update_jdn.sh b/update_jdn.sh index 8b23af6e..dfd999d7 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -678,6 +678,16 @@ Expire-Date: 0 %no-protection %commit EOF + + GPG_KEY_ID="$(sudo -u jenkins gpg --with-colons --fixed-list-mode --list-secret-keys | grep '^sec' | cut -d: -f5 | tail -n1)" + + if [ "$GPG_KEY_ID" = "" ] + then + explain "$(date) - Generated GPG key but could not parse key ID" + else + explain "$(date) - Generated GPG key $GPG_KEY_ID - submitting to keyserver" + sudo -u jenkins gpg --send-keys $GPG_KEY_ID + fi fi # -- cgit v1.2.3-70-g09d2