diff --git a/arbitrum/classic-entrypoint.sh b/arbitrum/classic-entrypoint.sh old mode 100644 new mode 100755 index c8209791..fd2d27bf --- a/arbitrum/classic-entrypoint.sh +++ b/arbitrum/classic-entrypoint.sh @@ -1,5 +1,13 @@ #!/bin/bash -echo "now we can download the db.tar file" +if [ -f /root/.arbitrum/mainnet/INITIALIZED ]; then + echo "datadir is already initialized" +else + echo "lemme download the database quickly" + rm -rf /root/.arbitrum/mainnet/db + curl https://snapshot.arbitrum.io/mainnet/db.tar | tar -xv -C /root/.arbitrum/mainnet/ && touch /root/.arbitrum/mainnet/INITIALIZED +fi + +echo "LFG!!!" /home/user/go/bin/arb-node $@