init erigon datadir every time
This commit is contained in:
@@ -5,12 +5,9 @@ set -e
|
|||||||
|
|
||||||
ERIGON_HOME=/root/.local/share/erigon
|
ERIGON_HOME=/root/.local/share/erigon
|
||||||
|
|
||||||
if [ ! -f "${ERIGON_HOME}/bootstrapped" ];
|
# only needed once but doesn't hurt every time we start the container
|
||||||
then
|
|
||||||
echo "write the custom genesis block"
|
echo "write the custom genesis block"
|
||||||
mkdir -p ${ERIGON_HOME:-/root/.local/share/erigon}
|
mkdir -p ${ERIGON_HOME:-/root/.local/share/erigon}
|
||||||
erigon init --datadir ${ERIGON_HOME:-/root/.local/share/erigon} /configs/mainnet/shared/genesis.json
|
erigon init --datadir ${ERIGON_HOME:-/root/.local/share/erigon} /configs/mainnet/shared/genesis.json
|
||||||
touch "${ERIGON_HOME}/bootstrapped"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec erigon $@
|
exec erigon $@
|
||||||
|
|||||||
Reference in New Issue
Block a user