finishing up

This commit is contained in:
Sebastian
2023-08-13 08:46:16 +02:00
parent a114c5d4b6
commit ef91590602
2 changed files with 7 additions and 68 deletions

View File

@@ -3,13 +3,13 @@
# exit script on any error
set -e
ERIGON_HOME=/datadir
ERIGON_HOME=/root/.local/share/erigon
if [ "${BOOTSTRAP}" == 1 ] && [ -n "${SNAPSHOT_URL}" ] && [ ! -f "${ERIGON_HOME}/bootstrapped" ];
if [ ! -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
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_42.json
fi
exec erigon $@