From: "Ludovic Courtès" <ludo@gnu.org>
To: Julien Lepiller <julien@lepiller.eu>
Cc: 39684@debbugs.gnu.org
Subject: [bug#39684] [PATCH] etc: Automatically download the pgp key
Date: Wed, 18 Mar 2020 10:59:00 +0100 [thread overview]
Message-ID: <87o8su9e6z.fsf@gnu.org> (raw)
In-Reply-To: <20200220134159.70db5633@tachikoma.lepiller.eu> (Julien Lepiller's message of "Thu, 20 Feb 2020 13:41:59 +0100")
Hi Julien!
Julien Lepiller <julien@lepiller.eu> skribis:
>>From aebea6bcfa615bc644c9afa1120eeb34f0956c5a Mon Sep 17 00:00:00 2001
> From: Julien Lepiller <julien@lepiller.eu>
> Date: Thu, 20 Feb 2020 02:14:39 +0100
> Subject: [PATCH] etc: Add an `allow-import-gpg' option to the installer
> script.
>
> * etc/guix-install.sh: Add an `allow-import-gpg' option to support
> fetching the OpenPGP public key automatically.
Sounds like a good idea.
> --- a/etc/guix-install.sh
> +++ b/etc/guix-install.sh
> @@ -57,6 +57,7 @@ INF="[ INFO ] "
> DEBUG=0
> GNU_URL="https://ftp.gnu.org/gnu/guix/"
> OPENPGP_SIGNING_KEY_ID="3CE464558A84FDC69DB40CFB090B11993D9AEBB5"
> +GPG_IMPORT=0
Perhaps define:
OPENPGP_KEY_URL="https://sv.gnu.org/people/viewgpg.php?user_id=15145"
and use it everywhere?
> # This script needs to know where root's home directory is. However, we
> # cannot simply use the HOME environment variable, since there is no guarantee
> @@ -109,9 +110,14 @@ chk_gpg_keyring()
> # Without --dry-run this command will create a ~/.gnupg owned by root on
> # systems where gpg has never been used, causing errors and confusion.
> gpg --dry-run --list-keys ${OPENPGP_SIGNING_KEY_ID} >/dev/null 2>&1 || (
> - _err "${ERR}Missing OpenPGP public key. Fetch it with this command:"
> - echo " wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -"
> - exit 1
> + if [ "${GPG_IMPORT}" = "1" ]; then
> + wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -
This would become wget "$OPENPGP_KEY_URL" (better use quotes).
Thanks!
Ludo’.
next prev parent reply other threads:[~2020-03-18 10:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 1:22 [bug#39684] [PATCH] etc: Automatically download the pgp key Julien Lepiller
2020-02-20 12:41 ` Julien Lepiller
2020-03-18 9:59 ` Ludovic Courtès [this message]
2021-11-19 15:38 ` bug#39684: etc: Automatically download the gpg key Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8su9e6z.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=39684@debbugs.gnu.org \
--cc=julien@lepiller.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).