mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fix git-verify
This commit is contained in:
parent
915a4d7ab3
commit
3c7133766e
2 changed files with 7 additions and 5 deletions
|
@ -30,9 +30,10 @@ PGPsigner="$1"
|
|||
PGPpubkeyLink="$2"
|
||||
PGPpubkeyFingerprint="$3"
|
||||
|
||||
wget -O /var/cache/raspiblitz/pgp_keys.asc "${PGPpubkeyLink}"
|
||||
gpg --import --import-options show-only /var/cache/raspiblitz/pgp_keys.asc
|
||||
fingerprint=$(gpg /var/cache/raspiblitz/pgp_keys.asc 2>/dev/null | grep "${PGPpubkeyFingerprint}" -c)
|
||||
|
||||
wget -O /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc "${PGPpubkeyLink}"
|
||||
gpg --import --import-options show-only /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc
|
||||
fingerprint=$(gpg /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc 2>/dev/null | grep "${PGPpubkeyFingerprint}" -c)
|
||||
if [ "${fingerprint}" -lt 1 ]; then
|
||||
echo
|
||||
echo "# !!! WARNING --> the PGP fingerprint is not as expected for ${PGPsigner}" >&2
|
||||
|
@ -40,7 +41,8 @@ if [ "${fingerprint}" -lt 1 ]; then
|
|||
echo "# Exiting" >&2
|
||||
exit 7
|
||||
fi
|
||||
gpg --import /var/cache/raspiblitz/pgp_keys.asc
|
||||
gpg --import /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc
|
||||
rm /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc
|
||||
|
||||
trap 'rm -f "$_temp"' EXIT
|
||||
_temp="$(mktemp -p /dev/shm/)"
|
||||
|
|
|
@ -13,7 +13,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
|||
fi
|
||||
|
||||
PGPsigner="wiz"
|
||||
PGPpubkeyLink="https://github.com/${PGPsigner}.gpg"
|
||||
PGPpubkeyLink="https://github.com/wiz.gpg"
|
||||
PGPpubkeyFingerprint="A394E332255A6173"
|
||||
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue