Files
ethereum-rpc-docker/linea/erigon/scripts/entrypoint-sepolia.sh
Sebastian 803786263c fix
2024-10-03 09:57:04 +02:00

17 lines
386 B
Bash
Executable File

#!/bin/sh
# exit script on any error
set -e
ERIGON_HOME=/root/.local/share/erigon
if [ ! -f "${ERIGON_HOME}/bootstrapped" ];
then
echo "write the custom genesis block"
mkdir -p ${ERIGON_HOME:-/root/.local/share/erigon}
erigon init --datadir ${ERIGON_HOME:-/root/.local/share/erigon} /configs/sepolia/shared/genesis.json
touch "${ERIGON_HOME}/bootstrapped"
fi
exec erigon $@