From 8f1a9c80dc350ebdfcb43c346911bdb39e044457 Mon Sep 17 00:00:00 2001 From: Schemen Date: Sat, 20 Aug 2022 17:14:18 +0200 Subject: [PATCH] Update keepalived config location It's not deliverd by the alpine pkg anymore. --- rootfs/docker-entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rootfs/docker-entrypoint.sh b/rootfs/docker-entrypoint.sh index cf8de7d..c140a0a 100755 --- a/rootfs/docker-entrypoint.sh +++ b/rootfs/docker-entrypoint.sh @@ -11,15 +11,13 @@ PEER_IPS=$(curl -sS --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.cr KEEPALIVED_CONFIG=/etc/keepalived/keepalived.conf +mkdir -p /etc/keepalived/ + if [ -z "$PRIORITY" ]; then HOST_ID=$(echo $HOST_IP | grep -o "[0-9]*$") PRIORITY=$((100 + $HOST_ID)) fi -if test -f "$KEEPALIVED_CONFIG"; then - echo "$KEEPALIVED_CONFIG exists. Deleting..." - rm -f $KEEPALIVED_CONFIG -fi cat < $KEEPALIVED_CONFIG global_defs {