summaryrefslogtreecommitdiff
path: root/debian/userv-git-daemon.postinst
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-12-09 16:43:53 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-12-09 16:43:53 +0000
commit0c1c66930bc8d68b849d5bf91da29d30d51dc289 (patch)
tree8b4f8f524ac833d0afca1e4796b331e7320e9508 /debian/userv-git-daemon.postinst
parentf07baecf09e3be6b1ef01a02fd31f95db702ad86 (diff)
downloaduserv-utils-0c1c66930bc8d68b849d5bf91da29d30d51dc289.tar.gz
Improve adduser calls:
- no longer guard with calls to id, as adduser --quiet is idempotent - pass --shell /bin/false and --no-create-home
Diffstat (limited to 'debian/userv-git-daemon.postinst')
-rwxr-xr-xdebian/userv-git-daemon.postinst6
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/userv-git-daemon.postinst b/debian/userv-git-daemon.postinst
index 5ed3b4e..5ccaa88 100755
--- a/debian/userv-git-daemon.postinst
+++ b/debian/userv-git-daemon.postinst
@@ -30,8 +30,6 @@ if test -f $defaults; then . $defaults; fi
#DEBHELPER#
if [ "$GITDUSER" ]; then
- if id $GITDUSER >/dev/null 2>&1; then exit 0; fi
-
- adduser --system --group --gecos 'userv git daemon' \
- --home /etc/userv $GITDUSER
+ adduser --system --quiet --group --gecos 'userv git daemon' \
+ --home /etc/userv --no-create-home --shell /bin/false $GITDUSER
fi