Skip to content

Commit

Permalink
Fix bug #77
Browse files Browse the repository at this point in the history
  • Loading branch information
adlrocha committed Jan 5, 2018
1 parent f4f5c16 commit f956fda
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ if ( [ "dockerfile" == "$1" ]); then
fi

echo "ENODE -> 'enode://${ENODE_KEY}@${CURRENT_HOST_IP}:21000?discport=0'"
update_nodes_list "enode://${ENODE_KEY}@${CURRENT_HOST_IP}:21000?discport=0"
if ( [ "backup" != "$1" ]); then
update_nodes_list "enode://${ENODE_KEY}@${CURRENT_HOST_IP}:21000?discport=0"
fi
cd ~
if [[ "$CURRENT_HOST_IP" == "52.56.69.220" ]]; then
cp ~/alastria-node/data/static-nodes.json ~/alastria/data/static-nodes.json
Expand All @@ -184,13 +186,15 @@ if ( [ "general" == "$NODE_TYPE" ]); then
rm ./account_pass

echo "[*] Initializing Constellation node."
update_constellation_nodes "${CURRENT_HOST_IP}" "9000"
generate_conf "${CURRENT_HOST_IP}" "9000" "$CONSTELLATION_NODES" "${PWD}" > ~/alastria/data/constellation/constellation.conf
cd ~/alastria/data/constellation/keystore
cat ~/alastria/data/passwords.txt | constellation-node --generatekeys=node
if ( [ "backup" != "$1" ]); then
update_constellation_nodes "${CURRENT_HOST_IP}" "9000"
generate_conf "${CURRENT_HOST_IP}" "9000" "$CONSTELLATION_NODES" "${PWD}" > ~/alastria/data/constellation/constellation.conf
fi
cd ~/alastria/data/constellation/keystore
cat ~/alastria/data/passwords.txt | constellation-node --generatekeys=node
echo "______"
cd ~
fi


if ( [ "backup" == "$1" ]); then
echo "Recovering keys from backup ..."
Expand Down

0 comments on commit f956fda

Please sign in to comment.