mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
build: download binaries from bitcoincore.org (#2527)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user