Files
ethereum-rpc-docker/linea/geth/scripts/entrypoint.sh
Sebastian 458eb8081f fix
2024-03-03 07:59:02 +01:00

16 lines
314 B
Bash

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