Files
ethereum-rpc-docker/lukso/erigon/scripts/entrypoint.sh
2023-08-13 07:38:09 +02:00

16 lines
354 B
Bash

#!/bin/sh
# exit script on any error
set -e
ERIGON_HOME=/datadir
if [ "${BOOTSTRAP}" == 1 ] && [ -n "${SNAPSHOT_URL}" ] && [ ! -f "${ERIGON_HOME}/bootstrapped" ];
then
echo "downloading snapshot from ${SNAPSHOT_URL}"
mkdir -p ${ERIGON_HOME:-/datadir}
erigon init --datadir $ERIGON_HOME /configs/mainnet/shared/genesis_42.json
fi
exec erigon $@