X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-debian.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=30f95440f4d438c9f8dd141ed31f6c44f7d3855c;hp=9035bf7b79baaaa8e62c500d3a1a29862b43a6eb;hb=19b9f05e867495d51f5a34eea287d593eaf1de6e;hpb=347b3fd15e1973d473adcf3f8c78b16bd1bacb05 diff --git a/debian/postinst b/debian/postinst index 9035bf7..30f9544 100755 --- a/debian/postinst +++ b/debian/postinst @@ -4,42 +4,12 @@ set -e [ "$1" = "configure" ] || exit 0 +# Always show dialogs from postinst +# unless this is a fresh install (dialogs already show by preconfigure) +[ "$2" ] && export CN_POSTINST=1 + # Load debconf . /usr/share/debconf/confmodule db_version 2.0 -while true; do - db_fset carnet-debian/packages seen false - db_go || true - db_input critical carnet-debian/packages || true - db_go || true - - db_get carnet-debian/packages - packages="$RET" - if echo $packages | grep -q vsftpd-cn; then - vsftpd="yes" - else - vsftpd="no" - fi - - if echo $packages | grep -q proftpd-cn; then - proftpd="yes" - else - proftpd="no" - fi - - if [ "$proftpd" = "yes" -a "$vsftpd" = "yes" ]; then - db_fset carnet-debian/ftpd seen false - db_go || true - db_input critical carnet-debian/ftpd || true - else - break - fi -done - -db_fset carnet-debian/note seen false -db_go || true -db_input critical carnet-debian/note || true - -db_go || true -db_stop || true +#DEBHELPER#