Display short installation notice in postinst.
[carnet-upgrade.git] / debian / postinst
index 6515061..18aba45 100644 (file)
@@ -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
-
-