X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=2afcf7adf1dd1f0b8a7f6cb808f77cd7ff83eb7b;hb=refs%2Ftags%2Fdebian%2F1%252.2.13_cn1;hp=6ecc8f60a2b9f3ff9158d6e5fec2bf914e734e65;hpb=a80671d5f813a53e6199cd63c7db8e89ba8c0d87;p=dovecot-cn.git diff --git a/debian/postinst b/debian/postinst index 6ecc8f6..2afcf7a 100755 --- a/debian/postinst +++ b/debian/postinst @@ -46,15 +46,18 @@ cp_check_and_sed 'ssl = no' \ if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \ && ! grep -q ^ssl_key /etc/dovecot/conf.d/10-ssl.conf; then + + if [ ! -f /etc/dovecot/dovecot.pem -a ! -f /etc/dovecot/private/dovecot.pem ]; then + echo "CN: Generating certificate and key..." + /usr/share/dovecot-cn/mkcert.sh || true + fi + cp_check_and_sed '#ssl_cert = /dev/null fi