Skip to content

Commit 4efa140

Browse files
committed
Update README.md
1 parent 1453c5b commit 4efa140

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ Depending on the context where elastic-etcd is used, it can print out either etc
2626

2727
```bash
2828
$ export DISCOVERY_URL=$(curl -s 'https://discovery.etcd.io/new?size=3')
29-
$ etcd2 \
30-
$(elastic-etcd -v=6 -logtostderr -discovery=$DISCOVERY_URL -o flags \
31-
-name=master2 -client-port=2379 \
32-
-initial-advertise-peer-urls=http://1.2.3.4:2380 \
33-
) \
29+
$ set -e
30+
$ ELASTIC_PARAMS=$(elastic-etcd -v=6 -logtostderr -o flags
31+
-discovery=$DISCOVERY_URL -name=master2 -client-port=2379 \
32+
-initial-advertise-peer-urls=http://1.2.3.4:2380 \
33+
)
34+
$ etcd2 $ELASTIC_PARAMS \
3435
-listen-peer-urls=http://1.2.3.4:2480 \
3536
-listen-client-urls=http://1.2.3.4:2379 \
3637
-advertise-client-urls=http://1.2.3.4:2379

0 commit comments

Comments
 (0)