rpc-nodes/bsc/docker-entrypoint.sh

11 lines
343 B
Bash
Raw Permalink Normal View History

2022-03-03 10:14:26 +01:00
#!/bin/sh
set -x
2022-08-02 09:50:08 +02:00
if [ ! -f /bsc/config/setupdone ]; then
wget -O /bsc/mainnet.zip "https://github.com/bnb-chain/bsc/releases/download/${BSC_TAG}/mainnet.zip"
unzip -o -j /bsc/mainnet.zip "mainnet/genesis.json" -d /bsc/config/
bsc --datadir /bsc/.ethereum init /bsc/config/genesis.json
touch /bsc/config/setupdone
2022-03-03 10:14:26 +01:00
fi
exec "$@"