diff options
author | Steve Langasek <vorlon@debian.org> | 2008-08-19 21:47:39 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:24 -0800 |
commit | 2e3596bfae20e87d76c2c45ce191deb3291bc0dc (patch) | |
tree | deae90e59d339c8c35763f513f39d9da67374337 /debian/libpam-runtime.postinst | |
parent | 86fc243997f1e051b42ef6de5cf7aecd50236cff (diff) | |
download | pam-2e3596bfae20e87d76c2c45ce191deb3291bc0dc.tar.gz pam-2e3596bfae20e87d76c2c45ce191deb3291bc0dc.tar.bz2 pam-2e3596bfae20e87d76c2c45ce191deb3291bc0dc.zip |
create the new default configs with support for pam-auth-update substitution,
and set up libpam-runtime.postinst to invoke pam-auth-update
Diffstat (limited to 'debian/libpam-runtime.postinst')
-rw-r--r-- | debian/libpam-runtime.postinst | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index 5a734671..fcfb88d5 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -3,19 +3,22 @@ # If the user has removed the config file, respect this sign of dementia # -- only create on package install. -if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.76-17 +force= +if [ -z "$2" ] || dpkg --compare-versions "$2" lt 1.0.1-3 then + force=--force for configfile in common-auth common-account common-session \ common-password do - if [ ! -f /etc/pam.d/$configfile ] || \ - fgrep -q `md5sum /etc/pam.d/$configfile` \ + if [ -f /etc/pam.d/$configfile ] && \ + ! fgrep -q `md5sum /etc/pam.d/$configfile` \ /usr/share/pam/$configfile.md5sums 2>/dev/null then - cp /usr/share/pam/$configfile /etc/pam.d/ + force= fi done - rm -f /etc/pam.d/other.pre-upgrade 2>/dev/null || true fi +pam-auth-update $force + #DEBHELPER# |