etcdmain: simplify proxy start logic

This commit is contained in:
Jonathan Boulle
2014-11-05 11:31:13 -08:00
parent 58b171b3e5
commit b85496922f
2 changed files with 16 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/sh
disc=$(curl https://discovery.etcd.io/new?size=3)
rm -rf infra*.etcd
disc=$(curl -s https://discovery.etcd.io/new?size=3)
echo ETCD_DISCOVERY=${disc} > .env
echo "setup discovery start your cluster"
cat .env