We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c13d8e commit 5df3c7aCopy full SHA for 5df3c7a
1 file changed
tests/test.sh
@@ -84,6 +84,10 @@ function generate_certs() {
84
${E2D_BIN} pki gencerts --ca-cert "${CA_CRT}" --ca-key "${CA_KEY}"
85
chown ${TEST_USERNAME}: *.{key,crt}
86
echo "certs were generated"
87
+ # We are setting MY_IP here because `ip` command is not available before
88
+ # we install iproute
89
+ MY_IP="$(ip a s eth0 | grep inet | awk '{ print $2 }' | cut -d'/' -f1)"
90
+ echo "my ip is ${MY_IP}"
91
}
92
93
function run_first_e2d() {
@@ -118,7 +122,7 @@ function run_e2d() {
118
122
--peer-key=${PEER_KEY} \
119
123
--server-cert=${SERVER_CRT} \
120
124
--server-key=${SERVER_KEY} \
121
- --bootstrap-addrs ${E2D_LEADER_NAME}:7980"
125
+ --bootstrap-addrs ${E2D_LEADER_NAME}:7980,${MY_IP}:7980"
126
127
128
0 commit comments