From e7a9e5fc710f764c24232822ba8434f3298c0b42 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 20 Sep 2018 15:18:08 +0200 Subject: [PATCH] Removed pre and post hooks. see https://github.com/modoboa/modoboa/issues/1546 --- modoboa_installer/ssl.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modoboa_installer/ssl.py b/modoboa_installer/ssl.py index e957cf4..5c92fcf 100644 --- a/modoboa_installer/ssl.py +++ b/modoboa_installer/ssl.py @@ -79,11 +79,7 @@ class LetsEncryptCertificate(CertificateBackend): "/etc/letsencrypt/live/{}/privkey.pem".format(hostname))) with open("/etc/cron.d/letsencrypt", "w") as fp: fp.write("0 */12 * * * root /opt/certbot-auto renew " - "--quiet --no-self-upgrade --force-renewal " - "--pre-hook 'service nginx stop' " - "--post-hook 'service nginx start && " - "service postfix reload && " - "service dovecot reload'\n") + "--quiet --no-self-upgrade --force-renewal\n") cfg_file = "/etc/letsencrypt/renewal/{}.conf".format(hostname) pattern = "s/authenticator = standalone/authenticator = nginx/" utils.exec_cmd("perl -pi -e '{}' {}".format(pattern, cfg_file))