Add possible script to upgrade electrs (not enabled)

This commit is contained in:
Taylor Helsper 2020-11-26 13:22:31 -06:00
parent 5e3610e5d6
commit a622e2105c
2 changed files with 45 additions and 7 deletions

View File

@ -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

View File

@ -487,12 +487,26 @@ 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
# 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
#sudo install -g root -o root target/release/electrs /usr/bin/electrs
# install -g root -o root target/release/electrs /usr/bin/electrs
# echo $ELECTRS_VERSION > $ELECTRS_VERSION_FILE
# fi
# cd ~