mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 09:56:59 +02:00
fix(dev-db/etcd): Fix filtering of blank lines from c10n peer list
This commit is contained in:
parent
15886b7958
commit
9c31afccda
@ -31,7 +31,7 @@ if [ -e $BOOTSTRAP_DISCO ]; then
|
|||||||
ARGS="${ARGS} -discovery ${DISCOVERY_URL}"
|
ARGS="${ARGS} -discovery ${DISCOVERY_URL}"
|
||||||
|
|
||||||
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 '^$' | sed 's/$/:7001/'| tr '\n' ','| sed 's/^,//' | sed 's/,$//')
|
||||||
if [ -n "$IPS" ]; then
|
if [ -n "$IPS" ]; then
|
||||||
ARGS="${ARGS} -C ${IPS}"
|
ARGS="${ARGS} -C ${IPS}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user