Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolguy3289 authored Jan 3, 2024
1 parent e537ad7 commit f733038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ SNAPSHOT_URL="${SNAPSHOT_URL:-}" #off by default. latest snapshot at https://lbr
if [[ "$HUB_COMMAND" == "scribe" ]] && [[ -n "$SNAPSHOT_URL" ]] && [[ ! -d /database/lbry-rocksdb ]]; then
files="$(ls)"
echo "Downloading and extracting hub snapshot from $SNAPSHOT_URL"
wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar --use-compress-program=unzstd x -C /database
#wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar x -C /database
curl "$SNAPSHOT_URL" | zstd -d | tar xf - -C /database
fi

if [ -z "$HUB_COMMAND" ]; then
Expand Down

0 comments on commit f733038

Please sign in to comment.