From 99eaf640f328239be0cb7f81b04e74159652bbaf Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 23 Mar 2024 04:42:19 +0100 Subject: [PATCH] jo --- erigon-fullnode.yml | 2 +- erigon-gnosis-fullnode.yml | 2 +- restore-volumes.sh | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/erigon-fullnode.yml b/erigon-fullnode.yml index 05f162a7..f7128e3b 100644 --- a/erigon-fullnode.yml +++ b/erigon-fullnode.yml @@ -2,7 +2,7 @@ version: '3.1' services: erigon-mainnet-fullnode: - image: thorax/erigon:${ERIGON_VERSION:-v2.58.1} + image: thorax/erigon:${ERIGON_VERSION:-v2.59.0} user: root expose: - "16630" diff --git a/erigon-gnosis-fullnode.yml b/erigon-gnosis-fullnode.yml index 9e5a307e..107404c0 100644 --- a/erigon-gnosis-fullnode.yml +++ b/erigon-gnosis-fullnode.yml @@ -3,7 +3,7 @@ version: '3.1' services: erigon-gnosis-fullnode: - image: thorax/erigon:${ERIGON_VERSION:-v2.58.1} + image: thorax/erigon:${ERIGON_VERSION:-v2.59.0} user: root volumes: - "gnosis-fullnode_data:/datadir" diff --git a/restore-volumes.sh b/restore-volumes.sh index b1c3b47a..4057a446 100755 --- a/restore-volumes.sh +++ b/restore-volumes.sh @@ -42,8 +42,11 @@ for key in $keys; do newest_file=$(ls -1 "$backup_dir"/"$volume_name"* | sort | tail -n 1) if [ -z "$newest_file" ]; then - echo "Error: No backup found for volume '$volume_name'" - exit 1 + + if [ -z "$2" ]; then + echo "Error: No backup found for volume '$volume_name'" + exit 1 + fi fi required_space=$(calculate_required_space "$(basename "$newest_file")")