diff options
author | Steve Langasek <vorlon@debian.org> | 2008-08-20 00:21:05 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:25 -0800 |
commit | a3935c828080237114fe2f45e090bf2ed3d175d1 (patch) | |
tree | 3d547e88168aca281519871e75a35969f1eb3f0d /debian/libpam-runtime.postinst | |
parent | f3853092b7b42ff4bfb489ff825ee858732f3215 (diff) | |
download | pam-a3935c828080237114fe2f45e090bf2ed3d175d1.tar.gz pam-a3935c828080237114fe2f45e090bf2ed3d175d1.tar.bz2 pam-a3935c828080237114fe2f45e090bf2ed3d175d1.zip |
on upgrade, if we used the --force option clean up he resulting .pam-old
files; these are guaranteed not to contain anything of relevance.
Diffstat (limited to 'debian/libpam-runtime.postinst')
-rw-r--r-- | debian/libpam-runtime.postinst | 7 |
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# |