X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=spamassassin-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=845fe4b5d263f7a1d30aff69f4c0409fe55bf3b7;hp=37e44f82f419cca51b42815b6afae34a3b980985;hb=398d1393b4cd16ac3f5c5dd70295bbdbca78c18d;hpb=7ee5551c01113c21d8c5566d85889e95a33cc92e diff --git a/debian/postinst b/debian/postinst index 37e44f8..845fe4b 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,37 +1,16 @@ #!/bin/sh -# postinst script for spamassassin-cn -# -# see: dh_installdeb(1) set -e -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# - -case "$1" in - configure|reconfigure) - # continue below - ;; - - *) - exit 0 - ;; -esac - -# import CN-functions +[ "$1" = "configure" ] || exit 0 +[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx + +# Load CARNet Tools . /usr/share/carnet-tools/functions.sh -# load Debconf +# Load Debconf . /usr/share/debconf/confmodule + db_version 2.0 umask 022