removed forcing renew, no-autoupgrade

only renew, no force fix and do upgrades
https://github.com/modoboa/modoboa/issues/2129
This commit is contained in:
Karim
2022-06-27 19:49:46 +02:00
committed by GitHub
parent 578fc05981
commit 4301bcca74

View File

@@ -104,7 +104,7 @@ class LetsEncryptCertificate(CertificateBackend):
self.hostname, self.config.get("letsencrypt", "email"))) self.hostname, self.config.get("letsencrypt", "email")))
with open("/etc/cron.d/letsencrypt", "w") as fp: with open("/etc/cron.d/letsencrypt", "w") as fp:
fp.write("0 */12 * * * root certbot renew " fp.write("0 */12 * * * root certbot renew "
"--quiet --no-self-upgrade --force-renewal\n") "--quiet\n")
cfg_file = "/etc/letsencrypt/renewal/{}.conf".format(self.hostname) cfg_file = "/etc/letsencrypt/renewal/{}.conf".format(self.hostname)
pattern = "s/authenticator = standalone/authenticator = nginx/" pattern = "s/authenticator = standalone/authenticator = nginx/"
utils.exec_cmd("perl -pi -e '{}' {}".format(pattern, cfg_file)) utils.exec_cmd("perl -pi -e '{}' {}".format(pattern, cfg_file))