github.com/marconiprotocol/go-methereum-lite@v0.0.0-20190918214227-3cd8b06fcf99/build/deploy/init_peer.sh (about)

     1  #!/bin/bash
     2  
     3  source ../etc/meth/config.sh
     4  
     5  warnPeer() {
     6    echo "Misconfigured config.sh, please check peer settings"
     7  }
     8  
     9  if [ -z $PEER_DATADIR ]; then
    10    warnPeer
    11  fi
    12  
    13  HOME=`eval echo "~$USER"`
    14  PEER_DATADIR=$HOME/$PEER_DATADIR
    15  
    16  rm -rf $PEER_DATADIR
    17  ./gmeth --datadir $PEER_DATADIR init ../etc/meth/genesis.json