commit ccfe6b92bc3cb9695363b014b68a8f14c066508b parent 7e6cad7124cf47e52e80fdca212358664fd3b587 Author: Antoine A <> Date: Wed, 27 Nov 2024 11:16:01 +0100 Install btc and eth on arm Diffstat:
| M | script/prepare.sh | | | 17 | ++++++++++------- |
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/script/prepare.sh b/script/prepare.sh @@ -16,27 +16,30 @@ function cleanup() { trap cleanup EXIT -ARCH=`uname -m` +BTC_VER="28.0" +ETH_VER="1.13.5-916d6a44" echo "Ⅰ - Find installed postgres version" PG_VER=`pg_config --version | egrep -o '[0-9]{1,}' | head -1` echo "Found version $PG_VER" -echo "Ⅱ - Install bitcoind version 28.8" +echo "Ⅱ - Install bitcoind version $BTC_VER" cd $DIR -curl -L https://bitcoincore.org/bin/bitcoin-core-28.0/bitcoin-28.0-$ARCH-linux-gnu.tar.gz -o btc.tar.gz +ARCH=`uname -m` +curl -L https://bitcoincore.org/bin/bitcoin-core-$BTC_VER/bitcoin-$BTC_VER-$ARCH-linux-gnu.tar.gz -o btc.tar.gz tar xvzf btc.tar.gz rm -rfv ~/bitcoin mkdir -pv ~/bitcoin -mv -v bitcoin-28.0/* ~/bitcoin +mv -v bitcoin-$BTC_VER/* ~/bitcoin -echo "Ⅲ - Install Go Ethereum (Geth) v1.13.5" +echo "Ⅲ - Install Go Ethereum (Geth) v$ETH_VER" cd $DIR -curl -L https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.13.5-916d6a44.tar.gz -o geth.tar.gz +ARCH=`dpkg --print-architecture` +curl -L https://gethstore.blob.core.windows.net/builds/geth-linux-$ARCH-$ETH_VER.tar.gz -o geth.tar.gz tar xvzf geth.tar.gz rm -rfv ~/geth mkdir -pv ~/geth -mv -v geth-linux-amd64-1.13.5-916d6a44/* ~/geth +mv -v geth-linux-$ARCH-$ETH_VER/* ~/geth echo "Ⅴ - PATH"