Skip to content

Commit f4edc7e

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[follow-up] Use full binary path when invoking ip"
2 parents d7a0310 + f73c6b4 commit f4edc7e

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)