Skip to content

Commit f73c6b4

Browse files
committed
[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
1 parent c3eb169 commit f73c6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/letsencrypt/letsencrypt-lego/sync-and-update-certificate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if [ "${INTERNAL_SET}" = "true" ] || [ "${EXTERNAL_SET}" = "true" ]; then
6565
server=$(echo $i | awk -F ':' '{print $1}')
6666
port=$(echo $i | awk -F ':' '{print $2}')
6767

68-
if ! ip a | grep -q "${server}"; then
68+
if ! /usr/sbin/ip a | grep -q "${server}"; then
6969

7070
log_info "[${FQDN} - hook] Rsync lego data /etc/letsencrypt/lego/ to server ${server} and port ${port}"
7171
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

0 commit comments

Comments
 (0)