Skip to content

Commit

Permalink
[follow-up] Use full binary path when invoking ip
Browse files Browse the repository at this point in the history
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
  • Loading branch information
keuko authored and cityofships committed Feb 5, 2024
1 parent 49837b8 commit 8f283f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f283f2

Please sign in to comment.