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):