mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
add debug to build script
This commit is contained in:
@@ -352,6 +352,9 @@ sudo bash -c "echo '# end of pam-auth-update config' >> /etc/pam.d/common-sessio
|
|||||||
# "*** BITCOIN ***"
|
# "*** BITCOIN ***"
|
||||||
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_30_bitcoin.md#installation
|
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_30_bitcoin.md#installation
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "*** PREPARING BITCOIN & Co ***"
|
||||||
|
|
||||||
# set version (change if update is available)
|
# set version (change if update is available)
|
||||||
# https://bitcoincore.org/en/download/
|
# https://bitcoincore.org/en/download/
|
||||||
bitcoinVersion="0.18.1"
|
bitcoinVersion="0.18.1"
|
||||||
@@ -359,6 +362,11 @@ bitcoinVersion="0.18.1"
|
|||||||
# needed to check code signing
|
# needed to check code signing
|
||||||
laanwjPGP="01EA5486DE18A882D4C2684590C8019E36C2E964"
|
laanwjPGP="01EA5486DE18A882D4C2684590C8019E36C2E964"
|
||||||
|
|
||||||
|
# prepare directories
|
||||||
|
sudo rm -r /home/admin/download
|
||||||
|
sudo -u admin mkdir /home/admin/download
|
||||||
|
cd /home/admin/download
|
||||||
|
|
||||||
# download, check and import signer key
|
# download, check and import signer key
|
||||||
sudo -u admin wget https://bitcoin.org/laanwj-releases.asc
|
sudo -u admin wget https://bitcoin.org/laanwj-releases.asc
|
||||||
if [ ! -f "./laanwj-releases.asc" ]
|
if [ ! -f "./laanwj-releases.asc" ]
|
||||||
@@ -377,7 +385,6 @@ if [ ${fingerprint} -lt 1 ]; then
|
|||||||
fi
|
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://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/SHA256SUMS.asc
|
||||||
verifyResult=$(gpg --verify SHA256SUMS.asc 2>&1)
|
verifyResult=$(gpg --verify SHA256SUMS.asc 2>&1)
|
||||||
@@ -409,11 +416,6 @@ bitcoinSHA256=$(grep -i "$lndOSversion" SHA256SUMS.asc | cut -d " " -f1)
|
|||||||
echo ""
|
echo ""
|
||||||
echo "*** BITCOIN v${bitcoinVersion} for ${bitcoinOSversion} ***"
|
echo "*** BITCOIN v${bitcoinVersion} for ${bitcoinOSversion} ***"
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
sudo rm -r /home/admin/download
|
|
||||||
sudo -u admin mkdir /home/admin/download
|
|
||||||
cd /home/admin/download
|
|
||||||
|
|
||||||
# download resources
|
# download resources
|
||||||
binaryName="bitcoin-${bitcoinVersion}-${bitcoinOSversion}.tar.gz"
|
binaryName="bitcoin-${bitcoinVersion}-${bitcoinOSversion}.tar.gz"
|
||||||
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/${binaryName}
|
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/${binaryName}
|
||||||
|
Reference in New Issue
Block a user