diff options
author | Steve Langasek <steve.langasek@canonical.com> | 2022-10-05 20:57:42 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2022-10-05 21:00:08 -0700 |
commit | 714a766fcbe0d2cef9cdbefcd247be3aae5d6eef (patch) | |
tree | 70f577a20a44f79ff478bd53029ec1b84d5b7102 /debian/libpam-runtime.postinst | |
parent | fe1bf3cf4966b89d75f0de6892de494187a03e57 (diff) | |
parent | c1d908caf86eadc25a42c35bab355b4a6709a190 (diff) | |
download | pam-714a766fcbe0d2cef9cdbefcd247be3aae5d6eef.tar.gz pam-714a766fcbe0d2cef9cdbefcd247be3aae5d6eef.tar.bz2 pam-714a766fcbe0d2cef9cdbefcd247be3aae5d6eef.zip |
Merge remote-tracking branch 'josch/dpkg-root'
Support DPKG_ROOT in the postinst scripts.
Thanks, Johannes Schauer Marin Rodrigues.
Bug-Debian: https://bugs.debian.org/993161
Diffstat (limited to 'debian/libpam-runtime.postinst')
-rw-r--r-- | debian/libpam-runtime.postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index b13bf75c..792f44ff 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -20,9 +20,9 @@ then for configfile in common-auth common-account common-session \ common-password do - if [ -f /etc/pam.d/$configfile ] && \ + if [ -f "$DPKG_ROOT/etc/pam.d/$configfile" ] && \ ! fgrep -q $(calculate_md5sum $configfile) \ - /usr/share/pam/$configfile.md5sums 2>/dev/null + "$DPKG_ROOT/usr/share/pam/$configfile.md5sums" 2>/dev/null then force= fi |