mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Add eol to letsencrypt provided files
This commit is contained in:
parent
8c6464d430
commit
09315d3d3c
|
@ -120,6 +120,10 @@ fi
|
||||||
case $DMS_SSL in
|
case $DMS_SSL in
|
||||||
"letsencrypt" )
|
"letsencrypt" )
|
||||||
# letsencrypt folders and files mounted in /etc/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
|
# 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
|
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
|
||||||
|
|
Loading…
Reference in a new issue