mirror of
https://github.com/mynodebtc/mynode.git
synced 2025-01-11 19:30:11 +00:00
Add possible script to upgrade electrs (not enabled)
This commit is contained in:
parent
5e3610e5d6
commit
a622e2105c
|
@ -396,6 +396,30 @@ fi
|
||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
|
|
||||||
|
# Upgrade electrs
|
||||||
|
# ELECTRS_UPGRADE_URL=https://github.com/romanz/electrs/archive/$ELECTRS_VERSION.tar.gz
|
||||||
|
# CURRENT=""
|
||||||
|
# if [ -f $ELECTRS_VERSION_FILE ]; then
|
||||||
|
# CURRENT=$(cat $ELECTRS_VERSION_FILE)
|
||||||
|
# fi
|
||||||
|
# if [ "$CURRENT" != "$ELECTRS_VERSION" ]; then
|
||||||
|
# cd /opt/mynode
|
||||||
|
# rm -rf electrs
|
||||||
|
|
||||||
|
# rm -f electrs.tar.gz
|
||||||
|
# wget $ELECTRS_UPGRADE_URL -O electrs.tar.gz
|
||||||
|
# tar -xzf electrs.tar.gz
|
||||||
|
# rm -f electrs.tar.gz
|
||||||
|
# mv electrs-* electrs
|
||||||
|
|
||||||
|
# cd electrs
|
||||||
|
# cargo build --release
|
||||||
|
# install -g root -o root target/release/electrs /usr/bin/electrs
|
||||||
|
# echo $ELECTRS_VERSION > $ELECTRS_VERSION_FILE
|
||||||
|
# fi
|
||||||
|
# cd ~
|
||||||
|
|
||||||
|
|
||||||
# Install recent version of secp256k1
|
# Install recent version of secp256k1
|
||||||
echo "Installing secp256k1..."
|
echo "Installing secp256k1..."
|
||||||
if [ ! -f /usr/include/secp256k1_ecdh.h ]; then
|
if [ ! -f /usr/include/secp256k1_ecdh.h ]; then
|
||||||
|
|
|
@ -487,13 +487,27 @@ cd ~
|
||||||
|
|
||||||
|
|
||||||
# Install Electrs (only build to save new version, now included in overlay)
|
# Install Electrs (only build to save new version, now included in overlay)
|
||||||
#cd /home/admin/download
|
# ELECTRS_UPGRADE_URL=https://github.com/romanz/electrs/archive/$ELECTRS_VERSION.tar.gz
|
||||||
#wget https://github.com/romanz/electrs/archive/v0.7.0.tar.gz
|
# CURRENT=""
|
||||||
#tar -xvf v0.7.0.tar.gz
|
# if [ -f $ELECTRS_VERSION_FILE ]; then
|
||||||
#cd electrs-0.7.0
|
# CURRENT=$(cat $ELECTRS_VERSION_FILE)
|
||||||
#cargo build --release
|
# fi
|
||||||
#sudo install -g root -o root target/release/electrs /usr/bin/electrs
|
# if [ "$CURRENT" != "$ELECTRS_VERSION" ]; then
|
||||||
#cd ~
|
# cd /opt/mynode
|
||||||
|
# rm -rf electrs
|
||||||
|
|
||||||
|
# rm -f electrs.tar.gz
|
||||||
|
# wget $ELECTRS_UPGRADE_URL -O electrs.tar.gz
|
||||||
|
# tar -xzf electrs.tar.gz
|
||||||
|
# rm -f electrs.tar.gz
|
||||||
|
# mv electrs-* electrs
|
||||||
|
|
||||||
|
# cd electrs
|
||||||
|
# cargo build --release
|
||||||
|
# install -g root -o root target/release/electrs /usr/bin/electrs
|
||||||
|
# echo $ELECTRS_VERSION > $ELECTRS_VERSION_FILE
|
||||||
|
# fi
|
||||||
|
# cd ~
|
||||||
|
|
||||||
|
|
||||||
# Install recent version of secp256k1
|
# Install recent version of secp256k1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user