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 /debian/libpam-runtime.postinst | |
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.
Diffstat (limited to 'debian/libpam-runtime.postinst')
-rw-r--r-- | debian/libpam-runtime.postinst | 10 |
1 files changed, 5 insertions, 5 deletions
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# |