Skip to content
Snippets Groups Projects
Commit 4a8627e9 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

backwards compatibility

parent 3b8e50eb
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ NODEJSPGP=0x68576280 ...@@ -6,7 +6,7 @@ NODEJSPGP=0x68576280
# for building, which we hope has more space. # for building, which we hope has more space.
NEW=/home/root/new NEW=/home/root/new
trap 'exit 1' ERR trap 'echo "The installation failed." >&2 ; exit 1' ERR
set -o errtrace set -o errtrace
# Be verbose # Be verbose
set -e set -e
...@@ -142,14 +142,13 @@ function gethinstall ...@@ -142,14 +142,13 @@ function gethinstall
function initgenesis function initgenesis
{ {
( (
test -z "${BFAHOME}"
source ${BFAHOME}/bin/env source ${BFAHOME}/bin/env
BFANETWORKDIR=${BFANETWORKDIR:-${BFAHOME}/network} BFANETWORKDIR=${BFANETWORKDIR:-${BFAHOME}/network}
BFANODEDIR=${BFANODEDIR:-${BFANETWORKDIR}/node} BFANODEDIR=${BFANODEDIR:-${BFANETWORKDIR}/node}
if [ ! -d "${BFANODEDIR}" -o ! -d "${BFANODEDIR}/geth/chaindata" ] if [ ! -d "${BFANODEDIR}" -o ! -d "${BFANODEDIR}/geth/chaindata" ]
then then
info "Node is not initialised. Initialising with genesis." info "Node is not initialised. Initialising with genesis."
geth --cache 0 --datadir "${BFANODEDIR}" init "${BFANETWORKDIR}/genesis.json" geth --network ${BFANETWORKID} --cache 0 --datadir "${BFANODEDIR}" init "${BFANETWORKDIR}/genesis.json"
fi fi
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment