use GNUHOME to use ./gpg

This prevents mixing of keys when running the scripts locally for
testing, the same is done for the using keys.

Signed-off-by: Paul Spooren <mail@aparcar.org>
pull/27/head
Paul Spooren 2019-08-16 16:05:55 -10:00
parent ee1c7dad1b
commit 19285e351d
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,10 @@
set -ex
mkdir -p "gpg"
chmod 700 "gpg"
export GNUPGHOME="gpg"
# LEDE Build System (LEDE GnuPG key for unattended build jobs)
curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/626471F1.asc' | gpg --import \
&& echo '54CC74307A2C6DC9CE618269CD84BCED626471F1:6:' | gpg --import-ownertrust

View File

@ -3,6 +3,7 @@
set -ex
export FILE_HOST="${FILE_HOST:-downloads.openwrt.org}"
export GNUPGHOME="gpg"
curl "https://$FILE_HOST/$DOWNLOAD_PATH/sha256sums" -fs -o sha256sums
curl "https://$FILE_HOST/$DOWNLOAD_PATH/sha256sums.asc" -fs -o sha256sums.asc || true