Added missing newline at end of LE crontab.

This commit is contained in:
Antoine Nguyen
2018-07-11 11:07:08 +02:00
parent ab1c8254e0
commit 9eed99d884

View File

@@ -83,7 +83,7 @@ class LetsEncryptCertificate(CertificateBackend):
"--pre-hook 'service nginx stop' " "--pre-hook 'service nginx stop' "
"--post-hook 'service nginx start && " "--post-hook 'service nginx start && "
"service postfix reload && " "service postfix reload && "
"service dovecot reload'") "service dovecot reload'\n")
cfg_file = "/etc/letsencrypt/renewal/{}.conf".format(hostname) cfg_file = "/etc/letsencrypt/renewal/{}.conf".format(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))