summaryrefslogtreecommitdiff
path: root/debian/libpam-runtime.config
blob: 48bd75136ca71fb394c27a3ae09f2d3fac3e2b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e
. /usr/share/debconf/confmodule


# pam-auth-update is introduced in 1.0.1-6
# Between 1.0.1-6 and 1.0.1-10 it is possible to get empty profiles
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 high libpam-runtime/you-had-no-auth ||true
	    db_go
	fi
    fi
fi