Merge pull request #174 from philips/bump-etcd-listen

fix(dev-db/etcd): fixup listening IP
This commit is contained in:
Brandon Philips 2013-08-23 22:32:01 -07:00
commit eb01e1b659
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ EAPI=4
CROS_WORKON_PROJECT="coreos/etcd" CROS_WORKON_PROJECT="coreos/etcd"
CROS_WORKON_LOCALNAME="etcd" CROS_WORKON_LOCALNAME="etcd"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
CROS_WORKON_COMMIT="7b289043c7beced434be4334fb909ba0b16b57b1" # hash for tag v0.1.1 CROS_WORKON_COMMIT="32cf8ddfde3adb068635b2297169a91364ca7606" # hash for tag v0.1.1 + listen fixes
inherit toolchain-funcs cros-workon systemd inherit toolchain-funcs cros-workon systemd
DESCRIPTION="etcd" DESCRIPTION="etcd"

View File

@ -16,7 +16,7 @@ BOOTSTRAP="/var/run/etcd/bootstrap.config"
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1 [ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
CLUSTER_ARGS="-n $MY_IP -c 0.0.0.0:4001 -s 0.0.0.0:7001" CLUSTER_ARGS="-n $MY_IP -c $MY_IP:4001 -cl 0.0.0.0 -s $MY_IP:7001 -sl 0.0.0.0"
# strip blank lines # strip blank lines
IPS=$(grep -v $MY_IP $BOOTSTRAP|grep -v '^\n$' |sed 's/$/:7001/'|tr '\n' ','|sed 's/^,//'|sed 's/,$//') IPS=$(grep -v $MY_IP $BOOTSTRAP|grep -v '^\n$' |sed 's/$/:7001/'|tr '\n' ','|sed 's/^,//'|sed 's/,$//')