X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=1caedc80a59a272cc85807ef55d4e3481dbe1ab7;hb=refs%2Ftags%2Fdebian%2F1%252.2.27_cn0;hp=0d75081e6f8a19364e9e36ffca65b9a6ce3c52fe;hpb=d78f12c6bd8a4ec6ef0eee12dd9a8551fd57766f;p=dovecot-cn.git diff --git a/debian/postinst b/debian/postinst index 0d75081..1caedc8 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 @@ -49,7 +51,7 @@ if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \ 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 2>&1 > /dev/null + /usr/share/dovecot-cn/mkcert.sh || true fi cp_check_and_sed '#ssl_cert =