Skip to content

Commit

Permalink
Fix issue with HOST_IP for ETCD_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
sukrit007 committed Apr 13, 2016
1 parent 69364aa commit 0c8786d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/supervisord-wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -le

export HOST_IP="${HOST_IP:-$(/sbin/ip route|awk '/default/ { print $3 }')}"
export ETCD_HOST="${ETCD_HOST:-HOST_IP}"
export ETCD_HOST="${ETCD_HOST:-$HOST_IP}"
export ETCD_PORT="${ETCD_PORT:-4001}"
export ETCD_URL="${ETCD_URL:-http://$ETCD_HOST:$ETCD_PORT}"
export ETCDCTL="${ETCDCTL:-etcdctl --peers $ETCD_URL}"
Expand Down

0 comments on commit 0c8786d

Please sign in to comment.