summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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