Files
ethereum-rpc-docker/linea/scripts/entrypoint.erigon.sh
2025-10-25 15:40:46 +07:00

14 lines
361 B
Bash
Executable File

#!/bin/sh
# exit script on any error
set -e
ERIGON_HOME=/root/.local/share/erigon
# only needed once but doesn't hurt every time we start the container
echo "write the custom genesis block"
mkdir -p ${ERIGON_HOME:-/root/.local/share/erigon}
erigon init --datadir ${ERIGON_HOME:-/root/.local/share/erigon} /configs/mainnet/shared/genesis.json
exec erigon $@