build: download binaries from bitcoincore.org (#2527)

This commit is contained in:
openoms
2021-09-11 22:27:57 +01:00
committed by GitHub
parent 8b85690663
commit 653d71eadf

View File

@@ -875,7 +875,7 @@ fi
gpg --import ./laanwj-releases.asc gpg --import ./laanwj-releases.asc
# download signed binary sha256 hash sum file and check # download signed binary sha256 hash sum file and check
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/SHA256SUMS.asc sudo -u admin wget https://bitcoincore.org/bin/bitcoin-core-${bitcoinVersion}/SHA256SUMS.asc
verifyResult=$(gpg --verify SHA256SUMS.asc 2>&1) verifyResult=$(gpg --verify SHA256SUMS.asc 2>&1)
goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c) goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c)
echo "goodSignature(${goodSignature})" echo "goodSignature(${goodSignature})"
@@ -911,10 +911,10 @@ echo "*** BITCOIN v${bitcoinVersion} for ${bitcoinOSversion} ***"
# download resources # download resources
binaryName="bitcoin-${bitcoinVersion}-${bitcoinOSversion}.tar.gz" binaryName="bitcoin-${bitcoinVersion}-${bitcoinOSversion}.tar.gz"
if [ ! -f "./${binaryName}" ]; then if [ ! -f "./${binaryName}" ]; then
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/${binaryName} sudo -u admin wget https://bitcoincore.org/bin/bitcoin-core-${bitcoinVersion}/${binaryName}
fi fi
if [ ! -f "./${binaryName}" ]; then if [ ! -f "./${binaryName}" ]; then
echo "!!! FAIL !!! Download BITCOIN BINARY not success." echo "!!! FAIL !!! Could not download the BITCOIN BINARY"
exit 1 exit 1
else else
# check binary checksum test # check binary checksum test