mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-14 09:29:15 +00:00
Add Knots 27.1
This commit is contained in:
parent
487eaf2d6f
commit
b66fe12a11
|
@ -16,6 +16,22 @@ APP="$1"
|
||||||
# Stop services so we have plenty of RAM
|
# Stop services so we have plenty of RAM
|
||||||
/usr/bin/mynode_stop_critical_services.sh
|
/usr/bin/mynode_stop_critical_services.sh
|
||||||
|
|
||||||
|
# Determine arch
|
||||||
|
ARCH="UNKNOWN"
|
||||||
|
if [ $IS_RASPI = 1 ]; then
|
||||||
|
ARCH="arm-linux-gnueabihf"
|
||||||
|
if [ $IS_ARM64 = 1 ]; then
|
||||||
|
ARCH="aarch64-linux-gnu"
|
||||||
|
fi
|
||||||
|
elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ] || [ $IS_ROCKPI4 = 1 ]; then
|
||||||
|
ARCH="aarch64-linux-gnu"
|
||||||
|
elif [ $IS_X86 = 1 ]; then
|
||||||
|
ARCH="x86_64-linux-gnu"
|
||||||
|
else
|
||||||
|
echo "Unknown Arch"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Custom re-install steps
|
# Custom re-install steps
|
||||||
if [ "$APP" = "ordisrespector" ]; then
|
if [ "$APP" = "ordisrespector" ]; then
|
||||||
apt-get install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
|
apt-get install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
|
||||||
|
@ -65,21 +81,6 @@ if [ "$APP" = "ordisrespector" ]; then
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
elif [ "$APP" = "knots_26_1" ]; then
|
elif [ "$APP" = "knots_26_1" ]; then
|
||||||
# Determin arch
|
|
||||||
ARCH="UNKNOWN"
|
|
||||||
if [ $IS_RASPI = 1 ]; then
|
|
||||||
ARCH="arm-linux-gnueabihf"
|
|
||||||
if [ $IS_ARM64 = 1 ]; then
|
|
||||||
ARCH="aarch64-linux-gnu"
|
|
||||||
fi
|
|
||||||
elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ] || [ $IS_ROCKPI4 = 1 ]; then
|
|
||||||
ARCH="aarch64-linux-gnu"
|
|
||||||
elif [ $IS_X86 = 1 ]; then
|
|
||||||
ARCH="x86_64-linux-gnu"
|
|
||||||
else
|
|
||||||
echo "Unknown Bitcoin Version"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
BTC_UPGRADE_URL=https://bitcoinknots.org/files/26.x/26.1.knots20240513/bitcoin-26.1.knots20240513-$ARCH.tar.gz
|
BTC_UPGRADE_URL=https://bitcoinknots.org/files/26.x/26.1.knots20240513/bitcoin-26.1.knots20240513-$ARCH.tar.gz
|
||||||
|
|
||||||
rm -rf /opt/download
|
rm -rf /opt/download
|
||||||
|
@ -96,6 +97,24 @@ elif [ "$APP" = "knots_26_1" ]; then
|
||||||
echo "26.1-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
|
echo "26.1-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
|
||||||
echo "26.1-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom
|
echo "26.1-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom
|
||||||
|
|
||||||
|
cd ~
|
||||||
|
elif [ "$APP" = "knots_27_1" ]; then
|
||||||
|
BTC_UPGRADE_URL=https://bitcoinknots.org/files/27.x/27.1.knots20240801/bitcoin-27.1.knots20240801-$ARCH.tar.gz
|
||||||
|
|
||||||
|
rm -rf /opt/download
|
||||||
|
mkdir -p /opt/download
|
||||||
|
cd /opt/download
|
||||||
|
|
||||||
|
# Download and install
|
||||||
|
wget $BTC_UPGRADE_URL -O knots.tar.gz
|
||||||
|
tar -xvf knots.tar.gz
|
||||||
|
mv bitcoin-* bitcoin
|
||||||
|
install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/*
|
||||||
|
|
||||||
|
echo "27.1-knots" > /home/bitcoin/.mynode/bitcoin_version
|
||||||
|
echo "27.1-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
|
||||||
|
echo "27.1-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
elif [ "$APP" = "default" ]; then
|
elif [ "$APP" = "default" ]; then
|
||||||
# Clear custom info and re-install bitcoin
|
# Clear custom info and re-install bitcoin
|
||||||
|
|
|
@ -1115,6 +1115,7 @@
|
||||||
<option value="default">Default</option>
|
<option value="default">Default</option>
|
||||||
<option value="ordisrespector">Ordisrespector (v24.0.1)</option>
|
<option value="ordisrespector">Ordisrespector (v24.0.1)</option>
|
||||||
<option value="knots_26_1">Bitcoin Knots (v26.1)</option>
|
<option value="knots_26_1">Bitcoin Knots (v26.1)</option>
|
||||||
|
<option value="knots_27_1">Bitcoin Knots (v27.1)</option>
|
||||||
</select>
|
</select>
|
||||||
<button id="custom_bitcoin_install_button">Install</button>
|
<button id="custom_bitcoin_install_button">Install</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user