Fix lintian warnings.
[carnet-upgrade.git] / debian / postinst
index b182185..589daf7 100644 (file)
@@ -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
-
-