Improve reinstall of mempoolspace

This commit is contained in:
Taylor Helsper 2020-02-01 21:09:46 -06:00
parent 52d0e2519e
commit 9cce25cdc1
2 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,8 @@ while [ 1 ]; do
CURRENT=$(cat $MEMPOOLSPACE_UPGRADE_URL_FILE) CURRENT=$(cat $MEMPOOLSPACE_UPGRADE_URL_FILE)
fi fi
if [ "$CURRENT" != "$MEMPOOLSPACE_UPGRADE_URL" ]; then if [ "$CURRENT" != "$MEMPOOLSPACE_UPGRADE_URL" ]; then
docker rmi mempoolspace || true
cd /opt/mynode cd /opt/mynode
rm -rf mempoolspace rm -rf mempoolspace
wget $MEMPOOLSPACE_UPGRADE_URL -O mempool.zip wget $MEMPOOLSPACE_UPGRADE_URL -O mempool.zip

View File

@ -23,6 +23,8 @@ elif [ "$APP" = "rtl" ]; then
rm -f /home/bitcoin/.mynode/.rtl_url rm -f /home/bitcoin/.mynode/.rtl_url
elif [ "$APP" = "mempoolspace" ]; then elif [ "$APP" = "mempoolspace" ]; then
rm -f /mnt/hdd/mynode/settings/mempoolspace_url rm -f /mnt/hdd/mynode/settings/mempoolspace_url
systemctl stop mempoolspace
docker rmi mempoolspace
elif [ "$APP" = "joinmarket" ]; then elif [ "$APP" = "joinmarket" ]; then
rm -f /home/bitcoin/.mynode/.joinmarket_url rm -f /home/bitcoin/.mynode/.joinmarket_url
elif [ "$APP" = "whirlpool" ]; then elif [ "$APP" = "whirlpool" ]; then