From 3bea9d5e13f8f936fdc61aca3c65b4959ee02fb6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 6 Sep 2011 06:44:18 +0000 Subject: main/dovecot: enable ssl and create self-signed cert on install fixes #667 --- main/dovecot/dovecot.post-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/dovecot/dovecot.post-install') diff --git a/main/dovecot/dovecot.post-install b/main/dovecot/dovecot.post-install index e4d6bb281b0..c014fcbb47b 100644 --- a/main/dovecot/dovecot.post-install +++ b/main/dovecot/dovecot.post-install @@ -3,7 +3,7 @@ # based on doc/mkcert.sh # if ssl disabled then lets just exit -doveconf ssl | grep -q 'yes' || exit 0 +doveconf ssl 2>/dev/null | grep -q 'yes' || exit 0 # Generates a self-signed certificate. OPENSSL=${OPENSSL-openssl} @@ -25,7 +25,7 @@ fi # check if we have ssl_cert and/or key (for dovecot-2.0+) # try expand the cert/key itself and if found, lets just keep it [ -n "$(doveconf -x ssl_cert 2>/dev/null)" ] && exit 0 -[ -n "$(doveconf -x ssl_cert 2>/dev/null)" ] && exit 0 +[ -n "$(doveconf -x ssl_key 2>/dev/null)" ] && exit 0 [ -z "$ssl_cert_file" ] && ssl_cert_file=$(doveconf ssl_cert | sed 's/.*=