X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=24b56c7e933b202cfc28ffbcd6154a457763e1f9;hb=02a22141b9687d80a528202941ffe1f8fd420125;hp=b182185223a54dcebdf07f98fa5c7e4a04e6eb60;hpb=1e70ff3fe998033fd93c8cd177082b8cd566d2ce;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index b182185..24b56c7 100644 --- a/debian/postinst +++ b/debian/postinst @@ -31,11 +31,23 @@ case "$1" in ;; esac +if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + + # clear old cached values + if dpkg --compare-versions "$2" lt 5.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 +fi + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 - -