From 0509d2915d944d0b3187c458b4733522dba913d0 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 13 Mar 2016 13:16:25 +0100 Subject: [PATCH] telling in 96_ssl.conf that this file is overwriten by alternc.install. Fixes #33 --- wheezy/alternc.install.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wheezy/alternc.install.diff b/wheezy/alternc.install.diff index dc7aa90c..7ef25fbd 100644 --- a/wheezy/alternc.install.diff +++ b/wheezy/alternc.install.diff @@ -14,7 +14,7 @@ # We enable dovecot SSL certificate instructions: (on wheezy we should use a new file in /etc/dovecot/conf.d/ ) - sed -i -e 's#^ssl_cert_file.*$#ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem#' -e 's#^ssl_key_file.*$#ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key#' /etc/dovecot/dovecot.conf -+ ( echo "ssl_cert = /etc/dovecot/conf.d/96_ssl.conf ++ ( echo "# Don't change this file, it will be overwriten by alternc.install. Change ssl parameters in a file named 99_ssl.conf instead" ; echo "ssl_cert = /etc/dovecot/conf.d/96_ssl.conf else # We disable proftpd tls module @@ -23,7 +23,7 @@ # We disable dovecot SSL certificate instructions: (on wheezy we should remove a file in /etc/dovecot/conf.d/ ) - sed -i -e 's#^ssl_cert_file.*$#ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem#' -e 's#^ssl_key_file.*$#ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key#' /etc/dovecot/dovecot.conf -+ ( echo "ssl_cert = /etc/dovecot/conf.d/96_ssl.conf ++ ( echo "# Don't change this file, it will be overwriten by alternc.install. Change ssl parameters in a file named 99_ssl.conf instead" ; echo "ssl_cert = /etc/dovecot/conf.d/96_ssl.conf echo "SSL not configured" echo "create a certificate in /etc/alternc/apache.pem and rerun alternc.install"