summaryrefslogtreecommitdiff
path: root/debian/echolot.postinst.in
diff options
context:
space:
mode:
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