From 09315d3d3c373731e444c73de5f2ff054dd2512b Mon Sep 17 00:00:00 2001 From: Reldeis Date: Wed, 30 Mar 2016 11:51:40 +0200 Subject: [PATCH] Add eol to letsencrypt provided files --- start-mailserver.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start-mailserver.sh b/start-mailserver.sh index 082341b6..7f133da6 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -120,6 +120,10 @@ fi case $DMS_SSL in "letsencrypt" ) # letsencrypt folders and files mounted in /etc/letsencrypt + # add eol to all files before concatenation + sed -i -e '$a\' /etc/letsencrypt/live/$(hostname)/cert.pem + sed -i -e '$a\' /etc/letsencrypt/live/$(hostname)/chain.pem + sed -i -e '$a\' /etc/letsencrypt/live/$(hostname)/privkey.pem # Postfix configuration sed -i -r 's/smtpd_tls_cert_file=\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem/smtpd_tls_cert_file=\/etc\/letsencrypt\/live\/'$(hostname)'\/fullchain.pem/g' /etc/postfix/main.cf