From d907c391598ff1e9451ed52475c0c2bd1ca51093 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 25 Aug 2009 17:39:44 -0700 Subject: On upgrade from versions before 1.1.0-1, if /etc/pam.d/common-session-noninteractive has not been created (because the user declined use of pam-auth-update), create it by copying /etc/pam.d/common-session. Closes: #543401. --- debian/changelog | 4 ++++ debian/libpam-runtime.postinst | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index acabb06c..1dc1e475 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,10 @@ pam (1.1.0-1) UNRELEASED; urgency=low * Build with LDFLAGS=-Wl,-z,defs to guard against the possibility of any undefined symbols (due to typos or otherwise) at build time. Closes: #10231. + * On upgrade from versions before 1.1.0-1, if + /etc/pam.d/common-session-noninteractive has not been created (because + the user declined use of pam-auth-update), create it by copying + /etc/pam.d/common-session. Closes: #543401. -- Steve Langasek Mon, 24 Aug 2009 01:23:18 -0700 diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index dbda6895..178d0e23 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -47,6 +47,10 @@ if [ -n "$force" ]; then /etc/pam.d/common-account.pam-old \ /etc/pam.d/common-password.pam-old \ /etc/pam.d/common-session.pam-old +elif dpkg --compare-versions "$2" lt-nl 1.1.0-1 \ + && [ ! -e /etc/pam.d/common-session-noninteractive ] +then + cp -a /etc/pam.d/common-session /etc/pam.d/common-session-noninteractive fi if [ -n "$UHOH" ]; then -- cgit v1.2.3