Skip to content

Commit

Permalink
fixed bsc entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
feshchenkod committed Oct 25, 2022
1 parent 27349d1 commit fca8989
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bsc/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
set -x

if [ ! -f /bsc/config/setupdone ]; then
if [ ! -f /bsc/.ethereum/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
unzip -o -j /bsc/mainnet.zip "genesis.json" -d /bsc/.ethereum/config/
bsc --datadir /bsc/.ethereum init /bsc/.ethereum/config/genesis.json
touch /bsc/.ethereum/config/setupdone
fi

exec "$@"

0 comments on commit fca8989

Please sign in to comment.