X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=dovecot-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=6ecc8f60a2b9f3ff9158d6e5fec2bf914e734e65;hp=b3892be04065bc442f9a8acc4082ae81e95008b6;hb=a80671d5f813a53e6199cd63c7db8e89ba8c0d87;hpb=4151f5bf79d6b4d91a3c8bcbae22b2aee81fa077 diff --git a/debian/postinst b/debian/postinst index b3892be..6ecc8f6 100755 --- a/debian/postinst +++ b/debian/postinst @@ -39,6 +39,31 @@ cp_check_and_sed '#ssl =' \ 's/^#ssl =/ssl =/g' \ /etc/dovecot/conf.d/10-ssl.conf || true +# trazio zelja +cp_check_and_sed 'ssl = no' \ + 's/^ssl = no/ssl = yes/g' \ + /etc/dovecot/conf.d/10-ssl.conf || true + +if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \ + && ! grep -q ^ssl_key /etc/dovecot/conf.d/10-ssl.conf; then + cp_check_and_sed '#ssl_cert = /dev/null +fi + + + +# dodao ico, gasi stare SSL protokole +cp_check_and_sed '#ssl_protocols =' \ + 's/^#ssl_protocols.*/ssl_protocols = !SSLv2 !SSLv3/g' \ + /etc/dovecot/conf.d/10-ssl.conf || true + # restart if [ -x /usr/sbin/invoke-rc.d ]; then [ -x /etc/init.d/dovecot ] && invoke-rc.d dovecot restart