mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 12:05:04 +02:00
use --show-keys for gpg fingerprint listing (#2950)
This commit is contained in:
committed by
GitHub
parent
fb6f1a243c
commit
84687fc254
@@ -33,7 +33,7 @@ PGPpubkeyFingerprint="$3"
|
||||
|
||||
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)
|
||||
fingerprint=$(gpg --show-keys /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
|
||||
|
@@ -85,8 +85,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
fi
|
||||
|
||||
# check gpg finger print
|
||||
gpg ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c)
|
||||
gpg --show-keys ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg --show-keys "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c)
|
||||
if [ ${fingerprint} -lt 1 ]; then
|
||||
echo
|
||||
echo "# !!! BUILD WARNING --> Channel Tools PGP author not as expected"
|
||||
|
@@ -133,8 +133,8 @@ if [ "${mode}" = "on" ] || [ "${mode}" = "1" ]; then
|
||||
|
||||
echo
|
||||
echo "# getting gpg finger print"
|
||||
gpg ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c)
|
||||
gpg --show-keys ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg --show-keys "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c)
|
||||
if [ ${fingerprint} -lt 1 ]; then
|
||||
echo "error='PGP author check failed'"
|
||||
exit 1
|
||||
|
@@ -191,8 +191,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
fi
|
||||
|
||||
echo "# check gpg finger print"
|
||||
gpg --keyid-format LONG ./pgp_keys.asc
|
||||
fingerprint=$(gpg --keyid-format LONG "./pgp_keys.asc" 2>/dev/null \
|
||||
gpg --show-keys --keyid-format LONG ./pgp_keys.asc
|
||||
fingerprint=$(gpg --show-keys --keyid-format LONG "./pgp_keys.asc" 2>/dev/null \
|
||||
| grep "${PGPcheck}" -c)
|
||||
if [ ${fingerprint} -lt 1 ]; then
|
||||
echo ""
|
||||
|
@@ -122,8 +122,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
fi
|
||||
|
||||
echo "# check gpg finger print"
|
||||
gpg --keyid-format LONG ./pgp_keys.asc
|
||||
fingerprint=$(gpg --keyid-format LONG "./pgp_keys.asc" 2>/dev/null \
|
||||
gpg --show-keys --keyid-format LONG ./pgp_keys.asc
|
||||
fingerprint=$(gpg --show-keys --keyid-format LONG "./pgp_keys.asc" 2>/dev/null \
|
||||
| grep "${PGPcheck}" -c)
|
||||
if [ ${fingerprint} -lt 1 ]; then
|
||||
echo ""
|
||||
|
@@ -102,7 +102,7 @@ if [ "$1" = "install" ] ; then
|
||||
sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-${PGPauthor}-v${lndVersion}.sig
|
||||
sudo -u admin wget --no-check-certificate -N -O "pgp_keys.asc" ${PGPpkeys}
|
||||
gpg --import --import-options show-only ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg "pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c)
|
||||
fingerprint=$(sudo gpg --show-keys "pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c)
|
||||
if [ ${fingerprint} -lt 1 ]; then
|
||||
echo ""
|
||||
echo "!!! BUILD WARNING --> LND PGP author not as expected"
|
||||
|
@@ -177,8 +177,8 @@ if [ "${mode}" = "verified" ]; then
|
||||
|
||||
echo
|
||||
echo "# getting gpg finger print"
|
||||
gpg ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${lndUpdatePGPcheck}" -c)
|
||||
gpg --show-keys ./pgp_keys.asc
|
||||
fingerprint=$(sudo gpg --show-keys "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${lndUpdatePGPcheck}" -c)
|
||||
if [ ${fingerprint} -lt 1 ]; then
|
||||
echo "error='PGP author check failed'"
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user