summaryrefslogtreecommitdiff
path: root/debian/libpam-modules.postinst
blob: d59219975e17bec1e8f6d7140abdadb090506bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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.99.7.1-3
then
	if ! [ -f /etc/security/opasswd ]; then
		umask 066
		touch /etc/security/opasswd
		umask 022
	fi
fi

#DEBHELPER#