Skip to content

Commit

Permalink
update snapshot script
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Sep 27, 2024
1 parent 11478dd commit 607e704
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/geth/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ spec:
# Decompress based on file extension
if [[ "$SNAPSHOT_URL" == *.tar.zst ]]; then
wget -c "$SNAPSHOT_URL" -O - | zstd -d | tar -xz -C "$RESTORE_PATH"
echo "*.tar.zst file detected..."
wget -c "$SNAPSHOT_URL" -O - | zstd -d | tar -x -C "$RESTORE_PATH"
elif [[ "$SNAPSHOT_URL" == *.zst ]]; then
echo "*.zst file detected..."
wget -c "$SNAPSHOT_URL" -O - | zstd -d -rm -o "$RESTORE_PATH"
elif [[ "$SNAPSHOT_URL" == *.tar ]]; then
echo "*.tar file detected..."
wget -c "$SNAPSHOT_URL" -O - | tar -xz -C "$RESTORE_PATH"
else
echo "Unrecognised file format downloaded. Only .tar, .zst and .tar.zst supported."
Expand Down

0 comments on commit 607e704

Please sign in to comment.