X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=6413868a1e1f4d9ca2890468c67c4cc7cd992f85;hb=d0c4bd1d1ddee4d6d64ef91e3a84b46373ac5ddb;hp=b182185223a54dcebdf07f98fa5c7e4a04e6eb60;hpb=1e70ff3fe998033fd93c8cd177082b8cd566d2ce;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index b182185..6413868 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,41 +1,16 @@ #!/bin/sh -# postinst script for carnet-upgrade -# -# see: dh_installdeb(1) set -e -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package +[ "$1" = "configure" ] || exit 0 +# clear old cached values +if dpkg --compare-versions "$2" lt 6.0; then + export CN_POSTINST=1 +fi -case "$1" in - configure) - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. +# Load debconf +. /usr/share/debconf/confmodule +db_version 2.0 #DEBHELPER# - -exit 0 - -