X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=589daf7dd23ed7cb90c49af5ca302eff7f74b8cd;hb=a5f68994bf2bc448ee8b279d0defc22a8d8351ac;hp=b182185223a54dcebdf07f98fa5c7e4a04e6eb60;hpb=1e70ff3fe998033fd93c8cd177082b8cd566d2ce;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index b182185..589daf7 100644 --- a/debian/postinst +++ b/debian/postinst @@ -31,11 +31,24 @@ 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 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 +fi + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 - -