Fix missing BOOTNODES_TXT
This commit is contained in:
parent
1b0895a80a
commit
1df367c982
|
@ -103,7 +103,7 @@ INSTALL_CONFIG_REPO="https://raw.githubusercontent.com/oraclesorg/test-templates
|
|||
GENESIS_REPO_LOC="https://raw.githubusercontent.com/oraclesorg/oracles-scripts/master/spec.json"
|
||||
GENESIS_JSON="spec.json"
|
||||
NODE_TOML="node.toml"
|
||||
NODE_PWD="node.pwd"
|
||||
BOOTNODES_TXT="https://raw.githubusercontent.com/oraclesorg/test-templates/dev-mainnet/TestTestNet/bootnodes.txt"
|
||||
|
||||
echo "===== repo base path: ${INSTALL_CONFIG_REPO}"
|
||||
|
||||
|
@ -167,6 +167,7 @@ pull_image_and_configs() {
|
|||
# curl -s -O "${INSTALL_CONFIG_REPO}/../${GENESIS_JSON}"
|
||||
curl -s -o "${GENESIS_JSON}" "${GENESIS_REPO_LOC}"
|
||||
curl -s -O "${INSTALL_CONFIG_REPO}/${NODE_TOML}"
|
||||
curl -s -o "bootnodes.txt" "${BOOTNODES_TXT}"
|
||||
sed -i "/\[network\]/a nat=\"extip:${EXT_IP}\"" ${NODE_TOML}
|
||||
sed -i "/\[network\]/a bootnodes=\[$(cat bootnodes.txt | sed 's/\r$//' | awk -F'#' '{ print $1 }' | awk '/enode/{ print "\""$1"\"" }' | paste -sd "," -)\]" ${NODE_TOML}
|
||||
cat >> ${NODE_TOML} <<EOF
|
||||
|
|
Loading…
Reference in New Issue