Skip to content

Commit

Permalink
interbtc-parachain: implement snapshot download
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Oct 9, 2021
1 parent 64254ae commit 5d01d71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/polkabtc-parachain/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ spec:
- sh
- -c
- |
set -e
FILE="{{ .Values.basePath }}/polkashots-imported"
if [ ! -f "$FILE" ]; then
echo "Downloading relaychain snapshot."
apk add --no-cache p7zip
wget {{ .Values.snapshotDownload.url }} -O snapshot.7z
7z x snapshot.7z -o{{ .Values.basePath }}{{ .Values.snapshotDownload.destPath }}
7z x -y snapshot.7z -o{{ .Values.basePath }}{{ .Values.snapshotDownload.destPath }}
rm -v snapshot.7z
touch "$FILE"
else
Expand Down

0 comments on commit 5d01d71

Please sign in to comment.