diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 105c867c..1dc053e7 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -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 diff --git a/setup/setup_device.sh b/setup/setup_device.sh index 06ed3301..3b4b6827 100755 --- a/setup/setup_device.sh +++ b/setup/setup_device.sh @@ -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