diff options
author | Steve Langasek <steve.langasek@canonical.com> | 2022-10-05 21:04:35 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2022-10-05 21:04:35 -0700 |
commit | b0d6b50dd63729879b652d73a6104302c92f7884 (patch) | |
tree | 839c414ee1965fd7c9b0aa53d3f492e92c8e9968 | |
parent | 6183559b9467d2c3ffbb99228a40a8bfa2fc8c6f (diff) | |
download | pam-b0d6b50dd63729879b652d73a6104302c92f7884.tar.gz pam-b0d6b50dd63729879b652d73a6104302c92f7884.tar.bz2 pam-b0d6b50dd63729879b652d73a6104302c92f7884.zip |
Further proof libpam-runtime postinst for DPKG_ROOT just in case.
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/libpam-runtime.postinst | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog index c76137a4..ad2e956e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ pam (1.5.2-3) UNRELEASED; urgency=medium package versions. Thanks, Marc Haber. * Support DPKG_ROOT in the postinst scripts. Closes: #993161. Thanks, Johannes Schauer Marin Rodrigues. + * Further proof libpam-runtime postinst for DPKG_ROOT just in case. -- Steve Langasek <vorlon@debian.org> Thu, 18 Aug 2022 18:26:29 +0000 diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index 03628cfe..667b33a6 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -8,7 +8,7 @@ calculate_md5sum() sed -n -e'1,/# here are the per-package modules (the "Primary" block)/p; /# here.s the fallback if no module succeeds/,/# and here are more per-package modules (the "Additional" block)/p; /# end of pam-auth-update config/,$p' \ - /etc/pam.d/"$configfile" | md5sum | awk '{ print $1 }' + "$DPKG_ROOT"/etc/pam.d/"$configfile" | md5sum | awk '{ print $1 }' } # If the user has removed the config file, respect this sign of dementia @@ -32,10 +32,10 @@ fi pam-auth-update --root "$DPKG_ROOT" --package $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 + rm -f "$DPKG_ROOT"/etc/pam.d/common-auth.pam-old \ + "$DPKG_ROOT"/etc/pam.d/common-account.pam-old \ + "$DPKG_ROOT"/etc/pam.d/common-password.pam-old \ + "$DPKG_ROOT"/etc/pam.d/common-session.pam-old fi #DEBHELPER# |