From 13bbc6749cb172357fd1fc4591f6e8b08f1e96b6 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Fri, 4 Nov 2016 11:18:42 +0000 Subject: As a one-off, send our key to the keyserver. This commit should be reverted once deployed everywhere. Signed-off-by: Chris Lamb Signed-off-by: Holger Levsen --- update_jdn.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update_jdn.sh b/update_jdn.sh index dfd999d7..1ce08d94 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -690,6 +690,17 @@ EOF fi fi +# As a one-off, send our key to the keyserver +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) - Could not find existing GPG key to submit" +else + explain "$(date) - Submitting previously-generated GPG key $GPG_KEY_ID to keyserver" + sudo -u jenkins gpg --send-keys $GPG_KEY_ID +fi + # # There's always some work left... # echo FIXME is ignored so check-jobs scripts can output templates requiring manual work -- cgit v1.2.3-70-g09d2