From 8f283f2ad51bfca70d6812e9cce3c9d82d7279a1 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Wed, 31 Jan 2024 13:38:56 +0100 Subject: [PATCH] [follow-up] Use full binary path when invoking ip Patch [1] fixed invoking of ip command in one script but forgot to fix on another place in another script. This patch is follow-up path and fix the same issue in those script. [1] https://review.opendev.org/c/openstack/kolla/+/906516 Change-Id: I5e41a550e438fb3e4008a9e6b8df35c4775c5c30 --- .../letsencrypt/letsencrypt-lego/sync-and-update-certificate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/letsencrypt/letsencrypt-lego/sync-and-update-certificate.sh b/docker/letsencrypt/letsencrypt-lego/sync-and-update-certificate.sh index 7cc12de710..d6665ca2d9 100644 --- a/docker/letsencrypt/letsencrypt-lego/sync-and-update-certificate.sh +++ b/docker/letsencrypt/letsencrypt-lego/sync-and-update-certificate.sh @@ -65,7 +65,7 @@ if [ "${INTERNAL_SET}" = "true" ] || [ "${EXTERNAL_SET}" = "true" ]; then server=$(echo $i | awk -F ':' '{print $1}') port=$(echo $i | awk -F ':' '{print $2}') - if ! ip a | grep -q "${server}"; then + if ! /usr/sbin/ip a | grep -q "${server}"; then log_info "[${FQDN} - hook] Rsync lego data /etc/letsencrypt/lego/ to server ${server} and port ${port}" rsync -a -e "ssh -p ${port} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentityFile=/var/lib/letsencrypt/.ssh/id_rsa" /etc/letsencrypt/lego/ haproxy@${server}:/etc/letsencrypt/lego/ --delete >/dev/null 2>&1