mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-23 21:18:07 +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 ~
|
||||
|
||||
|
||||
# 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
|
||||
echo "Installing secp256k1..."
|
||||
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)
|
||||
#cd /home/admin/download
|
||||
#wget https://github.com/romanz/electrs/archive/v0.7.0.tar.gz
|
||||
#tar -xvf v0.7.0.tar.gz
|
||||
#cd electrs-0.7.0
|
||||
#cargo build --release
|
||||
#sudo install -g root -o root target/release/electrs /usr/bin/electrs
|
||||
#cd ~
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user