From: Ralf Jung Date: Sun, 29 Jan 2023 21:36:16 +0000 (+0100) Subject: fix certfile existence check X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/commitdiff_plain/56f8399b05fb0e1ee81d0ad1845a0c64a109d6ab?ds=inline fix certfile existence check --- diff --git a/letsencrypt-tiny b/letsencrypt-tiny index 6df989b..26b2c1d 100755 --- a/letsencrypt-tiny +++ b/letsencrypt-tiny @@ -124,7 +124,7 @@ def auto_renewal(live, staging): now = datetime.datetime.now() key_age = now - key_mtime(live) need_new_key = key_age >= max_key_age - if os.path.exists(live): + if os.path.exists(certfile(live)): cert_validity = cert_expiry(live) - now need_new_cert = cert_validity <= renew_cert_time else: