|
@ -432,7 +432,7 @@ binaryName="lnd-linux-armv7-v${lndVersion}.tar.gz" |
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName} |
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName} |
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt |
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt |
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt.sig |
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt.sig |
|
|
sudo -u admin wget -O pgp_keys.asc ${PGPpkeys} |
|
|
sudo -u admin wget -O /home/admin/download/pgp_keys.asc ${PGPpkeys} |
|
|
|
|
|
|
|
|
# check binary is was not manipulated (checksum test) |
|
|
# check binary is was not manipulated (checksum test) |
|
|
binaryChecksum=$(sha256sum ${binaryName} | cut -d " " -f1) |
|
|
binaryChecksum=$(sha256sum ${binaryName} | cut -d " " -f1) |
|
@ -443,7 +443,7 @@ fi |
|
|
|
|
|
|
|
|
# check gpg finger print |
|
|
# check gpg finger print |
|
|
gpg ./pgp_keys.asc |
|
|
gpg ./pgp_keys.asc |
|
|
fingerprint=$(gpg ./pgp_keys.asc 2>/dev/null | grep "${PGPcheck}" -c) |
|
|
fingerprint=$(sudo -u admin gpg /home/admin/download/pgp_keys.asc 2>/dev/null | grep "${PGPcheck}" -c) |
|
|
if [ ${fingerprint} -lt 1 ]; then |
|
|
if [ ${fingerprint} -lt 1 ]; then |
|
|
echo "" |
|
|
echo "" |
|
|
echo "!!! BUILD WARNING --> LND PGP author not as expected" |
|
|
echo "!!! BUILD WARNING --> LND PGP author not as expected" |
|
|