X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=3981790dc347d461b3dad28e72754aa7d98b0848;hb=8e8d9b047e148d3d4c5dd84377a395674a7583fe;hp=6515061d37679f4d6526c13899f1f36b62193fa4;hpb=c45a2c532414ceebe73d11d03a8857167c0cbd69;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index 6515061..3981790 100644 --- a/debian/postinst +++ b/debian/postinst @@ -31,13 +31,19 @@ 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 5.0; then db_set carnet-upgrade/debconf-priority "" db_set carnet-upgrade/check-services "" - fi + + # 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 @@ -46,5 +52,3 @@ fi #DEBHELPER# exit 0 - -