extract snapshot url from metadata html
This commit is contained in:
parent
7e5be4837b
commit
4b9a0a90bb
@ -11,7 +11,7 @@ CHAINDATA_DIR=$DATA_DIR/geth/chaindata
|
||||
SNAPSHOT=https://datadirs.optimism.io/latest
|
||||
|
||||
if [ ! -d "$CHAINDATA_DIR" ]; then
|
||||
wget -c $SNAPSHOT -O - | zstd -cd | tar xf - -C $DATA_DIR
|
||||
wget -c $(curl -sL $SNAPSHOT | grep -oP '(?<=url=)[^"]*') -O - | zstd -cd | tar xf - -C $DATA_DIR
|
||||
fi
|
||||
|
||||
$GETH_BIN \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user