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:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user