mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
Merge pull request #350 from bcwaldon/etcd-bootstrap-fix
Properly check for c10n peers in etcd-bootstrap
This commit is contained in:
commit
8f6f6007a0
@ -28,7 +28,7 @@ if [ -e $BOOTSTRAP_DISCO ]; then
|
||||
|
||||
elif [ -e $BOOTSTRAP_PEERS ]; then
|
||||
IPS=$(grep -v $MY_IP $BOOTSTRAP_PEERS | grep -v '^\n$' | sed 's/$/:7001/'| tr '\n' ','| sed 's/^,//' | sed 's/,$//')
|
||||
if [ -z "$IPS" ]; then
|
||||
if [ -n "$IPS" ]; then
|
||||
ARGS="${ARGS} -C ${IPS}"
|
||||
fi
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user