summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-07-22 22:48:15 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 16:11:46 -0800
commita3ee6f5fc767b1b01568bce6dd31fc9ca932a8d2 (patch)
tree1056901e2cb3e4e14c07e28b9a79ac18f457d0d5
parentbb35eb98388b6e0475670c134f8268c484befcf5 (diff)
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.
-rw-r--r--debian/changelog3
-rw-r--r--debian/libpam-modules.postinst5
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index b4024faf..9e5f79f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,9 @@ pam (0.99.9.0-1) UNRELEASED; urgency=low
* 027_pam_limits_better_init_allow_explicit_root: RLIM_INFINITY is also
invalid for RLIMIT_NOFILE, so when resetting the limits for a new session,
use the kernel default of 1024 instead. Closes: #404836.
+ * 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.
-- Steve Langasek <vorlon@debian.org> Tue, 22 Jul 2008 10:55:45 -0700
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#