mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
Merge pull request #170 from philips/etcd-listen-on-local
fix(dev-db/etcd): listen on 0.0.0.0:4001
This commit is contained in:
commit
f8cc3c1d1a
@ -16,7 +16,7 @@ BOOTSTRAP="/var/run/etcd/bootstrap.config"
|
||||
|
||||
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
|
||||
|
||||
CLUSTER_ARGS="-n $MY_IP -c $MY_IP:4001 -s $MY_IP:7001"
|
||||
CLUSTER_ARGS="-n $MY_IP -c 0.0.0.0:4001 -s 0.0.0.0:7001"
|
||||
|
||||
# strip blank lines
|
||||
IPS=$(grep -v $MY_IP $BOOTSTRAP|grep -v '^\n$' |sed 's/$/:7001/'|tr '\n' ','|sed 's/^,//'|sed 's/,$//')
|
||||
|
Loading…
x
Reference in New Issue
Block a user