mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +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
|
elif [ -e $BOOTSTRAP_PEERS ]; then
|
||||||
IPS=$(grep -v $MY_IP $BOOTSTRAP_PEERS | grep -v '^\n$' | sed 's/$/:7001/'| tr '\n' ','| sed 's/^,//' | sed 's/,$//')
|
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}"
|
ARGS="${ARGS} -C ${IPS}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user