From 337ee6975a5d26087466f5271be9b1b3479f4d4f Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 4 Aug 2009 16:21:55 +0100 Subject: Fix the config error *first* to limit the window of exposure as much as possible, /then/ display the debconf error which may block the upgrade. --- debian/libpam-runtime.postinst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'debian/libpam-runtime.postinst') diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index 76a3fc21..ebdccc9e 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -8,8 +8,7 @@ if [ "x$2" != "x" ] ;then if dpkg --compare-versions $2 lt 1.0.1-10 && dpkg --compare-versions $2 ge 1.0.1-6 ; then db_get libpam-runtime/profiles if [ "x$ret" = "x" ] ; then - db_input critical libpam-runtime/you-had-no-auth ||true - db_go + UHOH=1 fi fi fi @@ -41,4 +40,9 @@ if [ -n "$force" ]; then /etc/pam.d/common-session.pam-old fi +if [ -n "$UHOH" ]; then + db_input critical libpam-runtime/you-had-no-auth || true + db_go +fi + #DEBHELPER# -- cgit v1.2.3