|
|
@ -10,7 +10,7 @@ |
|
|
|
|
|
|
|
echo "" |
|
|
|
echo "***************************************" |
|
|
|
echo "* RASPIBLITZ SD CARD IMAGE SETUP v0.91*" |
|
|
|
echo "* RASPIBLITZ SD CARD IMAGE SETUP v0.92*" |
|
|
|
echo "***************************************" |
|
|
|
echo "" |
|
|
|
|
|
|
@ -109,7 +109,7 @@ echo "*** BITCOIN ***" |
|
|
|
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_30_bitcoin.md#installation |
|
|
|
|
|
|
|
# set version (change if update is available) |
|
|
|
bitcoinVersion="0.16.2" |
|
|
|
bitcoinVersion="0.17.0" |
|
|
|
laanwjPGP="01EA5486DE18A882D4C2684590C8019E36C2E964" |
|
|
|
|
|
|
|
# prepare directories |
|
|
@ -117,13 +117,13 @@ sudo -u admin mkdir /home/admin/download |
|
|
|
cd /home/admin/download |
|
|
|
|
|
|
|
# download resources |
|
|
|
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/bitcoin-${bitcoinVersion}-arm-linux-gnueabihf.tar.gz |
|
|
|
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/test.rc3/bitcoin-${bitcoinVersion}rc3-arm-linux-gnueabihf.tar.gz |
|
|
|
if [ ! -f "./bitcoin-${bitcoinVersion}-arm-linux-gnueabihf.tar.gz" ] |
|
|
|
then |
|
|
|
echo "!!! FAIL !!! Download BITCOIN BINARY not success." |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/SHA256SUMS.asc |
|
|
|
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/test.rc3/SHA256SUMS.asc |
|
|
|
if [ ! -f "./SHA256SUMS.asc" ] |
|
|
|
then |
|
|
|
echo "!!! FAIL !!! Download SHA256SUMS.asc not success." |
|
|
@ -164,7 +164,7 @@ if [ ${correctKey} -lt 1 ] || [ ${goodSignature} -lt 1 ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
# install |
|
|
|
sudo -u admin tar -xvf bitcoin-${bitcoinVersion}-arm-linux-gnueabihf.tar.gz |
|
|
|
sudo -u admin tar -xvf bitcoin-${bitcoinVersion}rc3-arm-linux-gnueabihf.tar.gz |
|
|
|
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-${bitcoinVersion}/bin/* |
|
|
|
sleep 3 |
|
|
|
installed=$(sudo -u admin bitcoind --version | grep "${bitcoinVersion}" -c) |
|
|
|