From 282749c98bfd62f317d038eda38d1b55fe0525cb Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Thu, 12 Mar 2015 19:57:19 +0000
Subject: [PATCH] Creates a proper cert for mail

---
 tests/email.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/email.sh b/tests/email.sh
index 142af0a..00aa2d0 100755
--- a/tests/email.sh
+++ b/tests/email.sh
@@ -1,7 +1,7 @@
 #!/bin/bash -eux
 
 mkdir -p /data/domains/mail/dovecot
-mkdir -p /data/domains/mail/TLS
+mkdir -p /data/domains/mail/TLS/
 mkdir -p /data/domains/mail/static/www-content
 mkdir -p /data/runtime/domains/mail/mysql/db_files
 mkdir -p /data/domains/mail/mysql
@@ -22,7 +22,7 @@ openssl x509 -req -days 365 \
   -in /data/domains/mail/TLS/ssl_cert_sign_req.csr -signkey /data/domains/mail/TLS/ssl_private_key.pem -out /data/domains/mail/TLS/ssl_certificate.pem
 openssl dhparam -out /data/domains/mail/TLS/dh2048.pem 2048
 
-cp /data/domains/mail/TLS/ssl_certificate.pem /data/domains/mail/TLS/mail.pem
+cat /data/domains/mail/TLS/ssl_certificate.pem /data/domains/mail/TLS/ssl_private_key.pem > /data/domains/mail/TLS/mail.pem
 
 systemctl enable dovecot
 systemctl enable postfix
-- 
GitLab