Use full binary path when invoking ip

Closes-bug: #2051111
Change-Id: I2a4df6121236379d88d0d7f2f7a888feab273003
This commit is contained in:
Piotr Parczewski 2024-01-24 13:23:52 +01:00
parent 76d78b50c0
commit c3eb169e6c
2 changed files with 6 additions and 1 deletions

View File

@ -171,7 +171,7 @@ if [ "${INTERNAL_SET}" = "true" ] || [ "${EXTERNAL_SET}" = "true" ]; then
fi
if ip a | egrep -q "${LETSENCRYPT_VIP_ADDRESSES}"; then
if /usr/sbin/ip a | egrep -q "${LETSENCRYPT_VIP_ADDRESSES}"; then
log_info "[${FQDN} - cron] This Letsencrypt-lego host is active..."
if [ "${LETSENCRYPT_INTERNAL_FQDNS}" != "" ]; then
log_info "[${FQDN} - cron] Processing domains ${LETSENCRYPT_INTERNAL_FQDNS}"

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes the issue with command not found within letsencrypt-lego container.
`LP#2051111 <https://launchpad.net/bugs/2051111>`__