Merge "[follow-up] Use full binary path when invoking ip"

This commit is contained in:
Zuul 2024-02-02 15:34:36 +00:00 committed by Gerrit Code Review
commit f4edc7e1c1
1 changed files with 1 additions and 1 deletions

View File

@ -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