From 697b98395a70ec2d0cd3751f32f0b868f419d36b Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Mon, 12 Aug 2019 02:48:11 +0200 Subject: [PATCH] add debug to build script --- build_sdcard.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build_sdcard.sh b/build_sdcard.sh index acfdd3f9e..ecbd76790 100644 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -352,6 +352,9 @@ sudo bash -c "echo '# end of pam-auth-update config' >> /etc/pam.d/common-sessio # "*** BITCOIN ***" # 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) # https://bitcoincore.org/en/download/ bitcoinVersion="0.18.1" @@ -359,6 +362,11 @@ bitcoinVersion="0.18.1" # needed to check code signing 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 sudo -u admin wget https://bitcoin.org/laanwj-releases.asc if [ ! -f "./laanwj-releases.asc" ] @@ -377,7 +385,6 @@ if [ ${fingerprint} -lt 1 ]; then fi gpg --import ./laanwj-releases.asc - # download signed binary sha256 hash sum file and check sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/SHA256SUMS.asc verifyResult=$(gpg --verify SHA256SUMS.asc 2>&1) @@ -409,11 +416,6 @@ bitcoinSHA256=$(grep -i "$lndOSversion" SHA256SUMS.asc | cut -d " " -f1) echo "" 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 binaryName="bitcoin-${bitcoinVersion}-${bitcoinOSversion}.tar.gz" sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/${binaryName}