[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
This commit is contained in:
parent
c3eb169e6c
commit
f73c6b4c75
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue