Skip to content
Snippets Groups Projects
Commit a152697d authored by Bob Mottram's avatar Bob Mottram
Browse files

Also publish backup public key to avoid sync error messages

This shouldn't introduce any security issues
parent 574f1de2
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment