Update entrypoint.sh

This commit is contained in:
Ralph 2024-01-03 09:57:55 -05:00 committed by GitHub
parent e537ad7db1
commit f733038885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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