X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=18aba4529e85bbf64d631afe9f0f5c9773ad09c1;hb=6f16a791600624706880580563bfd764d7562ecf;hp=6515061d37679f4d6526c13899f1f36b62193fa4;hpb=f905d82c468d23045cdd3d3888c5850159f7ae36;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index 6515061..18aba45 100644 --- a/debian/postinst +++ b/debian/postinst @@ -31,13 +31,18 @@ case "$1" in ;; esac -# clear old cached values -if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 4.0; then - if [ -e /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule +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 + 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 @@ -46,5 +51,3 @@ fi #DEBHELPER# exit 0 - -