summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-20 00:21:05 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:25 -0800
commita3935c828080237114fe2f45e090bf2ed3d175d1 (patch)
tree3d547e88168aca281519871e75a35969f1eb3f0d
parentf3853092b7b42ff4bfb489ff825ee858732f3215 (diff)
on upgrade, if we used the --force option clean up he resulting .pam-old
files; these are guaranteed not to contain anything of relevance.
-rw-r--r--debian/libpam-runtime.postinst7
1 files changed, 7 insertions, 0 deletions
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#