summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2004-11-14 22:25:36 +0000
committerPeter Palfrader <peter@palfrader.org>2004-11-14 22:25:36 +0000
commit716a492f46e41548947f7fd9b8a172279edc8426 (patch)
tree6c6153295b2186a22afe8e4f0f2d570e93054238
parent639cbd489af1de1c5c9f6b4247c49d3a8e31cd60 (diff)
debian: Create echolot user group in proper gid space.
-rw-r--r--NEWS3
-rwxr-xr-xdebian/echolot.postinst.in16
2 files changed, 12 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 87e05dc..b8210ef 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
Changes in version -
- * Add disable and enable to allowed commands in debian's init
+ * debian: Add disable and enable to allowed commands in init
script
+ * debian: Create echolot user group in proper gid space.
Changes in version 2.1.6 - 2004-08-07
* Catch a possible use of undefined values in a log trace() call.
diff --git a/debian/echolot.postinst.in b/debian/echolot.postinst.in
index 912a69b..1f68dc8 100755
--- a/debian/echolot.postinst.in
+++ b/debian/echolot.postinst.in
@@ -5,12 +5,16 @@
. /usr/share/debconf/confmodule
# Make sure the echolot user exists
-getent group echolot >/dev/null 2>&1 || (
- echo Adding echolot group
- addgroup echolot )
-getent passwd echolot >/dev/null 2>&1 || (
- echo Adding echolot user
- adduser --system --shell /bin/bash --home /var/lib/echolot --ingroup echolot --gecos "Echolot Pinger" echolot )
+adduser --quiet \
+ --quiet \
+ --system \
+ --disabled-password \
+ --shell /bin/bash \
+ --home /var/lib/echolot \
+ --no-create-home \
+ --group \
+ --gecos "Echolot Pinger" \
+ echolot
# Give the echolot user write permissions to /var/log/echolot/echolot.log
touch /var/log/echolot/echolot.log