From a3935c828080237114fe2f45e090bf2ed3d175d1 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 20 Aug 2008 00:21:05 -0700 Subject: on upgrade, if we used the --force option clean up he resulting .pam-old files; these are guaranteed not to contain anything of relevance. --- debian/libpam-runtime.postinst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debian/libpam-runtime.postinst') diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index fcfb88d5..5efb3f16 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -21,4 +21,11 @@ fi pam-auth-update $force +if [ -n "$force" ]; then + rm -f /etc/pam.d/common-auth.pam-old \ + /etc/pam.d/common-account.pam-old \ + /etc/pam.d/common-password.pam-old \ + /etc/pam.d/common-session.pam-old +fi + #DEBHELPER# -- cgit v1.2.3