mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-24 13:38:11 +00:00
Detect bitcoind for rockpro64
This commit is contained in:
parent
90a1b1d5f0
commit
05cfeb78c3
|
@ -72,17 +72,18 @@ usermod -aG docker root
|
|||
|
||||
# Upgrade BTC
|
||||
echo "Upgrading BTC..."
|
||||
set +e
|
||||
BTC_VERSION="0.19.0.1"
|
||||
ARCH="UNKNOWN"
|
||||
if [ $IS_RASPI = 1]; then
|
||||
ARCH="arm-linux-gnueabihf"
|
||||
uname -a | grep aarch64
|
||||
if [ $? = 0 ]; then
|
||||
elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ]; then
|
||||
ARCH="aarch64-linux-gnu"
|
||||
fi
|
||||
if [ $IS_X86 = 1 ]; then
|
||||
elif [ $IS_X86 = 1 ]; then
|
||||
ARCH="x86_64-linux-gnu"
|
||||
else
|
||||
echo "Unknown Bitcoin Version"
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
BTC_UPGRADE_URL=https://bitcoincore.org/bin/bitcoin-core-$BTC_VERSION/bitcoin-$BTC_VERSION-$ARCH.tar.gz
|
||||
BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url
|
||||
BTC_UPGRADE_SHA256SUM_URL=https://bitcoincore.org/bin/bitcoin-core-$BTC_VERSION/SHA256SUMS.asc
|
||||
|
|
|
@ -187,12 +187,16 @@ rm -rf /etc/update-motd.d/*
|
|||
|
||||
# Install Bitcoin
|
||||
BTC_VERSION="0.19.0.1"
|
||||
ARCH="UNKNOWN"
|
||||
if [ $IS_RASPI = 1]; then
|
||||
ARCH="arm-linux-gnueabihf"
|
||||
if [ $IS_ROCK64 = 1 ]; then
|
||||
elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ]; then
|
||||
ARCH="aarch64-linux-gnu"
|
||||
fi
|
||||
if [ $IS_X86 = 1 ]; then
|
||||
elif [ $IS_X86 = 1 ]; then
|
||||
ARCH="x86_64-linux-gnu"
|
||||
else
|
||||
echo "Unknown Bitcoin Version"
|
||||
exit 1
|
||||
fi
|
||||
BTC_UPGRADE_URL=https://bitcoincore.org/bin/bitcoin-core-$BTC_VERSION/bitcoin-$BTC_VERSION-$ARCH.tar.gz
|
||||
BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url
|
||||
|
|
Loading…
Reference in New Issue
Block a user