github.com/kotalco/kotal@v0.3.0/controllers/ethereum/geth_init_genesis.sh (about) 1 #!/bin/sh 2 3 set -e 4 5 if [ ! -d $KOTAL_DATA_PATH/geth ] 6 then 7 echo "initializing geth genesis block" 8 geth init --datadir $KOTAL_DATA_PATH $KOTAL_CONFIG_PATH/genesis.json 9 else 10 echo "genesis block has been initialized before!" 11 fi