aboutsummaryrefslogtreecommitdiff
path: root/debian/libpam-modules.postinst
blob: 5242ba2313f10fbfb584da221d83ddd13174512b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# If the user has removed the config file, respect this sign of dementia
# -- only create on package install.

if [ -z "$2" ]; then
	if ! [ -f "$DPKG_ROOT"/etc/security/opasswd ]; then
		umask 066
		touch "$DPKG_ROOT"/etc/security/opasswd
		umask 022
	fi
fi

if [ -z "$2" ] && [ ! -f "$DPKG_ROOT"/etc/environment ]; then
	touch "$DPKG_ROOT"/etc/environment
fi

#DEBHELPER#