X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=6413868a1e1f4d9ca2890468c67c4cc7cd992f85;hb=d0c4bd1d1ddee4d6d64ef91e3a84b46373ac5ddb;hp=18aba4529e85bbf64d631afe9f0f5c9773ad09c1;hpb=6f16a791600624706880580563bfd764d7562ecf;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index 18aba45..6413868 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,53 +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 - -case "$1" in - configure) - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule - - # clear old cached values - if dpkg --compare-versions "$2" lt 4.0; then - db_set carnet-upgrade/debconf-priority "" - db_set carnet-upgrade/check-services "" - fi - - # display installation notice (since 4.0.3) - db_input high carnet-upgrade/short-instructions || true - db_go +# clear old cached values +if dpkg --compare-versions "$2" lt 6.0; then + export CN_POSTINST=1 fi -# 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