Fix bootnodes.txt processing
This commit is contained in:
parent
0ffa891a96
commit
5075b420c2
|
@ -160,9 +160,9 @@ pull_image_and_configs() {
|
||||||
# curl -s -O "${INSTALL_CONFIG_REPO}/../${GENESIS_JSON}"
|
# curl -s -O "${INSTALL_CONFIG_REPO}/../${GENESIS_JSON}"
|
||||||
curl -s -o "${GENESIS_JSON}" "${GENESIS_REPO_LOC}"
|
curl -s -o "${GENESIS_JSON}" "${GENESIS_REPO_LOC}"
|
||||||
curl -s -O "${INSTALL_CONFIG_REPO}/${NODE_TOML}"
|
curl -s -O "${INSTALL_CONFIG_REPO}/${NODE_TOML}"
|
||||||
curl -s -O "bootnodes.txt" "${BOOTNODES_TXT}"
|
curl -s -o "bootnodes.txt" "${BOOTNODES_TXT}"
|
||||||
sed -i "/\[network\]/a nat=\"extip:${EXT_IP}\"" ${NODE_TOML}
|
sed -i "/\[network\]/a nat=\"extip:${EXT_IP}\"" ${NODE_TOML}
|
||||||
sed -i "/\[network\]/a bootnodes=\[$(cat bootnodes.txt | awk -F'#' '{ print $1 }' | awk '/.+/{ if ($1) print "\""$1"\"" }' | paste -sd "," -)\]" ${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
|
cat >> ${NODE_TOML} <<EOF
|
||||||
[misc]
|
[misc]
|
||||||
logging="engine=trace,network=trace,discovery=trace"
|
logging="engine=trace,network=trace,discovery=trace"
|
||||||
|
|
|
@ -168,6 +168,7 @@ pull_image_and_configs() {
|
||||||
curl -s -o "${GENESIS_JSON}" "${GENESIS_REPO_LOC}"
|
curl -s -o "${GENESIS_JSON}" "${GENESIS_REPO_LOC}"
|
||||||
curl -s -O "${INSTALL_CONFIG_REPO}/${NODE_TOML}"
|
curl -s -O "${INSTALL_CONFIG_REPO}/${NODE_TOML}"
|
||||||
sed -i "/\[network\]/a nat=\"extip:${EXT_IP}\"" ${NODE_TOML}
|
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
|
cat >> ${NODE_TOML} <<EOF
|
||||||
[misc]
|
[misc]
|
||||||
logging="engine=trace,network=trace,discovery=trace"
|
logging="engine=trace,network=trace,discovery=trace"
|
||||||
|
|
Loading…
Reference in New Issue