Merge branch 'debian'
[hcoop/debian/exim4.git] / debian / exim4-daemon-light.postinst
index 1096ac8..4a2e108 100644 (file)
@@ -41,7 +41,7 @@ case "$1" in
                echo "Initializing GnuTLS DH parameter file" 1>&2
                tempgnutls=$(tempfile --directory /var/spool/exim4 --mode 644 --prefix  "gnutp")
                chown Debian-exim:Debian-exim $tempgnutls
-               if [ -x /usr/bin/certtool ] && \
+               if which certtool > /dev/null 2>&1 && \
                        timeout --preserve-status --kill-after=15 120 \
                        certtool --generate-dh-params --bits 2048 > $tempgnutls ; then
                                mv $tempgnutls /var/spool/exim4/gnutls-params-2048