X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=6413868a1e1f4d9ca2890468c67c4cc7cd992f85;hb=2ca0dbd0c6c05c77ff6b438ac1183c609c36caa6;hp=589daf7dd23ed7cb90c49af5ca302eff7f74b8cd;hpb=bd6e63dd7803fb0eed748605a2bd3aeb20d7040b;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index 589daf7..6413868 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,54 +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 6.0; then - db_set carnet-upgrade/debconf-priority "" - db_set carnet-upgrade/check-services "" - - # display installation notice for new version - db_fset carnet-upgrade/short-instructions seen false - db_input high carnet-upgrade/short-instructions || true - db_go - fi +# 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