X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-debian.git;a=blobdiff_plain;f=debian%2Fconfig;h=2ffabbe3655e83fb6bad06f42c729cb6590008b0;hp=9035bf7b79baaaa8e62c500d3a1a29862b43a6eb;hb=6f0a66f1a4acdef7b69a2988efa543fe90ef78ae;hpb=4da805881c546a42232b9dcb386ef0d7d3fd0b10 diff --git a/debian/config b/debian/config index 9035bf7..2ffabbe 100755 --- a/debian/config +++ b/debian/config @@ -2,15 +2,18 @@ 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 @@ -30,6 +33,7 @@ while true; do 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 @@ -37,8 +41,6 @@ while true; do fi done -db_fset carnet-debian/note seen false -db_go || true db_input critical carnet-debian/note || true db_go || true