X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=f66c3c342ada6ccdbe00f2ecd92aa0ebc230d3f4;hb=fbaf4e97b93973c102b53986c82647596599ce0d;hp=2afcf7adf1dd1f0b8a7f6cb808f77cd7ff83eb7b;hpb=cd070e8b8eb8f3b9e6fcd42b5b66033a004bb5e6;p=dovecot-cn.git diff --git a/debian/postinst b/debian/postinst index 2afcf7a..f66c3c3 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e [ "$1" = "configure" ] || exit 0 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx @@ -31,7 +33,12 @@ cp_check_and_sed 'pop3_client_workarounds' \ /etc/dovecot/conf.d/20-pop3.conf || true cp_check_and_sed '#ssl_cipher_list' \ - 's/#ssl_cipher_list.*/ssl_cipher_list = ALL:!aNULL:!eNULL:!ADH!LOW:!MEDIUM:!EXP:!SSLv2:HIGH/g' \ + 's/#ssl_cipher_list.*/ssl_cipher_list = ALL:!aNULL:!eNULL:!ADH!LOW:!MEDIUM:!EXP:HIGH/g' \ + /etc/dovecot/conf.d/10-ssl.conf || true + +# izbacujemo SSLv2 +cp_check_and_sed 'ssl_cipher_list' \ + 's/:\!SSLv2//g' \ /etc/dovecot/conf.d/10-ssl.conf || true # trazio zelja @@ -58,21 +65,76 @@ if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \ cp_check_and_sed '#ssl_key =