From 90e30e5b3e5cb4e6c18a6a4b825337b74b468142 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 8 Dec 2017 14:42:32 +0100 Subject: [PATCH] Change renewal authenticator to nginx. fix #165 --- modoboa_installer/ssl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modoboa_installer/ssl.py b/modoboa_installer/ssl.py index 87aebee..2a295ec 100644 --- a/modoboa_installer/ssl.py +++ b/modoboa_installer/ssl.py @@ -84,6 +84,9 @@ class LetsEncryptCertificate(CertificateBackend): "--post-hook 'service nginx start && " "service postfix reload && " "service dovecot reload'") + cfg_file = "/etc/letsencrypt/renewal/{}.conf".format(hostname) + pattern = "s/authenticator = standalone/authenticator = nginx/" + utils.exec_cmd("perl -pi -e '{}' {}".format(pattern, cfg_file)) def get_backend(config):