diff options
author | Steve Langasek <vorlon@debian.org> | 2008-07-22 22:48:15 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 16:11:46 -0800 |
commit | a3ee6f5fc767b1b01568bce6dd31fc9ca932a8d2 (patch) | |
tree | 1056901e2cb3e4e14c07e28b9a79ac18f457d0d5 /debian/libpam-modules.postinst | |
parent | bb35eb98388b6e0475670c134f8268c484befcf5 (diff) | |
download | pam-a3ee6f5fc767b1b01568bce6dd31fc9ca932a8d2.tar.gz pam-a3ee6f5fc767b1b01568bce6dd31fc9ca932a8d2.tar.bz2 pam-a3ee6f5fc767b1b01568bce6dd31fc9ca932a8d2.zip |
Create /etc/environment on initial install of libpam-modules (or on
upgrade from an old version), to quell warnings in the logs about it
being missing. Closes: #442049.
Diffstat (limited to 'debian/libpam-modules.postinst')
-rw-r--r-- | debian/libpam-modules.postinst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/libpam-modules.postinst b/debian/libpam-modules.postinst index d5921997..723877cf 100644 --- a/debian/libpam-modules.postinst +++ b/debian/libpam-modules.postinst @@ -12,4 +12,9 @@ then fi fi +if dpkg --compare-versions "$2" lt 0.99.9.0-1 && ! [ -f /etc/environment ] +then + touch /etc/environment +fi + #DEBHELPER# |