realy do not renew certificates if it is not needed
This commit is contained in:
parent
c91609315b
commit
b13cb4ccff
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ source $1
|
||||||
|
|
||||||
logger -t letsencrypt "Checking certificate ${LETSENCRYPT_CRT}"
|
logger -t letsencrypt "Checking certificate ${LETSENCRYPT_CRT}"
|
||||||
daysleft=$(/usr/local/bin/acme-primitives.py remaining_days "${LETSENCRYPT_CRT}" || echo "0") 2>/dev/null
|
daysleft=$(/usr/local/bin/acme-primitives.py remaining_days "${LETSENCRYPT_CRT}" || echo "0") 2>/dev/null
|
||||||
[ "$daysleft" -lt "$LETSENCRYPT_REMAININGDAYS" ] || { logger -t letsencrypt "Cert has ${LETSENCRYPT_REMAININGDAYS} days remaining, not renewing" exit 0; }
|
[ "$daysleft" -lt "$LETSENCRYPT_REMAININGDAYS" ] || { logger -t letsencrypt "Cert has ${LETSENCRYPT_REMAININGDAYS} days remaining, not renewing"; exit 0; }
|
||||||
|
|
||||||
folder="$(mktemp -d)"
|
folder="$(mktemp -d)"
|
||||||
cd "${folder}"
|
cd "${folder}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue