set -e
-[ "$1" = "configure" ] || exit 0
-
# Load debconf
. /usr/share/debconf/confmodule
db_version 2.0
-while true; do
+# Show dialogs if started from postinst
+if [ "$CN_POSTINST" ]; then
db_fset carnet-debian/packages seen false
+ db_fset carnet-debian/note seen false
db_go || true
+fi
+
+while true; do
db_input critical carnet-debian/packages || true
db_go || true
if [ "$proftpd" = "yes" -a "$vsftpd" = "yes" ]; then
db_fset carnet-debian/ftpd seen false
+ db_fset carnet-debian/packages seen false
db_go || true
db_input critical carnet-debian/ftpd || true
else
fi
done
-db_fset carnet-debian/note seen false
-db_go || true
db_input critical carnet-debian/note || true
db_go || true