diff --git a/charts/tezos/scripts/smart-rollup-snapshot-downloader.sh b/charts/tezos/scripts/smart-rollup-snapshot-downloader.sh index 5ef99aa..298b046 100644 --- a/charts/tezos/scripts/smart-rollup-snapshot-downloader.sh +++ b/charts/tezos/scripts/smart-rollup-snapshot-downloader.sh @@ -11,7 +11,7 @@ if [ ! -d "$data_dir" ]; then exit 1 fi -if [ -e "$rollup_data_dir/storage/l2_blocks/data" ]; then +if [ -e "$rollup_data_dir/store.sqlite" ]; then echo "Smart rollup snapshot has already been imported. Exiting." exit 0 fi @@ -27,4 +27,4 @@ echo "Downloading ${SNAPSHOT_URL}" mkdir -p "$rollup_data_dir" curl -LfsS ${SNAPSHOT_URL} | tee >(sha256sum > ${snapshot_file}.sha256sum) > "$snapshot_file" -chown -R 1000:1000 "$data_dir" \ No newline at end of file +chown -R 1000:1000 "$data_dir" diff --git a/charts/tezos/scripts/smart-rollup-snapshot-importer.sh b/charts/tezos/scripts/smart-rollup-snapshot-importer.sh index fb6c07a..277bfa3 100644 --- a/charts/tezos/scripts/smart-rollup-snapshot-importer.sh +++ b/charts/tezos/scripts/smart-rollup-snapshot-importer.sh @@ -11,7 +11,7 @@ if [ ! -f ${snapshot_file} ]; then exit 0 fi -if [ -e "$rollup_data_dir/storage/l2_blocks/data" ]; then +if [ -e "$rollup_data_dir/store.sqlite" ]; then echo "Smart rollup snapshot has already been imported. Exiting." exit 0 fi