Change token example to use returned value only

The discovery.etcd.io/new already returns a complete URL containing the host, so there is no need to specify it on the command line.
This commit is contained in:
Jan-Erik Rediger 2014-02-08 09:58:24 +01:00
parent 86546c68b4
commit c6910a96de

View File

@ -20,8 +20,8 @@ Here's a full example:
```
TOKEN=$(curl https://discovery.etcd.io/new)
./etcd -name instance1 -peer-addr 10.1.2.3:7001 -addr 10.1.2.3:4001 -discovery https://discovery.etcd.io/$TOKEN
./etcd -name instance2 -peer-addr 10.1.2.4:7002 -addr 10.1.2.4:4002 -discovery https://discovery.etcd.io/$TOKEN
./etcd -name instance1 -peer-addr 10.1.2.3:7001 -addr 10.1.2.3:4001 -discovery $TOKEN
./etcd -name instance2 -peer-addr 10.1.2.4:7002 -addr 10.1.2.4:4002 -discovery $TOKEN
```
## Running Your Own Discovery Endpoint