blob: 5a734671a69b783eb50d203db897d8a14d5be6a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh -e
# If the user has removed the config file, respect this sign of dementia
# -- only create on package install.
if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.76-17
then
for configfile in common-auth common-account common-session \
common-password
do
if [ ! -f /etc/pam.d/$configfile ] || \
fgrep -q `md5sum /etc/pam.d/$configfile` \
/usr/share/pam/$configfile.md5sums 2>/dev/null
then
cp /usr/share/pam/$configfile /etc/pam.d/
fi
done
rm -f /etc/pam.d/other.pre-upgrade 2>/dev/null || true
fi
#DEBHELPER#
|