Merge pull request #420 from saaditDE/saaditDE-removeForceRenew-removeNoUpgrade-Patch
removed forcing renew, no-autoupgrade
This commit is contained in:
@@ -104,7 +104,7 @@ class LetsEncryptCertificate(CertificateBackend):
|
||||
self.hostname, self.config.get("letsencrypt", "email")))
|
||||
with open("/etc/cron.d/letsencrypt", "w") as fp:
|
||||
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)
|
||||
pattern = "s/authenticator = standalone/authenticator = nginx/"
|
||||
utils.exec_cmd("perl -pi -e '{}' {}".format(pattern, cfg_file))
|
||||
|
||||
Reference in New Issue
Block a user