X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=18fd1cf9844d1a85dfc79b402f2300dbe5705fb7;hb=524338a0dbd2180b49c66595777e76dcbba1203b;hp=dd1bf13ddad709aed8e6ba5a18b396a015cd6008;hpb=61e2c36a2ade8df3ec5239ba9c069e14e64f0b56;p=dovecot-cn.git diff --git a/debian/postinst b/debian/postinst index dd1bf13..18fd1cf 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,14 +65,64 @@ if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \ cp_check_and_sed '#ssl_key =