summaryrefslogtreecommitdiff
path: root/debian/echolot.postinst.in
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 /debian/echolot.postinst.in
parent639cbd489af1de1c5c9f6b4247c49d3a8e31cd60 (diff)
debian: Create echolot user group in proper gid space.
Diffstat (limited to 'debian/echolot.postinst.in')
-rwxr-xr-xdebian/echolot.postinst.in16
1 files changed, 10 insertions, 6 deletions
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