From a152697dc36fa897ffa192f5fa91f49a893c2fea Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@robotics.uk.to> Date: Mon, 31 Oct 2016 15:29:46 +0000 Subject: [PATCH] Also publish backup public key to avoid sync error messages This shouldn't introduce any security issues --- src/freedombone-controlpanel-user | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index 55c2b61d6..9fe63559a 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -35,6 +35,7 @@ export TEXTDOMAINDIR="/usr/share/locale" MY_EMAIL_ADDRESS=$USER@$HOSTNAME GPG_ID=$(gpg --fingerprint $MY_EMAIL_ADDRESS | grep -i "pub" | head -n 1 | awk -F '/' '{print $2}' | awk -F ' ' '{print $1}') +GPG_BACKUP_ID=$(gpg --fingerprint "$MY_EMAIL_ADDRESS (backup key)" | grep -i "pub" | head -n 1 | awk -F '/' '{print $2}' | awk -F ' ' '{print $1}') UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-* for f in $UTILS_FILES @@ -404,6 +405,9 @@ function show_gpg_key { function publish_gpg_key { gpg --send-key $GPG_ID + if [ $GPG_BACKUP_ID ]; then + gpg --send-key $GPG_BACKUP_ID + fi dialog --title $"Publish your PGP/GPG key" \ --msgbox $"Your key has now been published" 6 40 } -- GitLab