summaryrefslogtreecommitdiff
path: root/community/darkstat/darkstat.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/darkstat/darkstat.install')
-rw-r--r--community/darkstat/darkstat.install7
1 files changed, 6 insertions, 1 deletions
diff --git a/community/darkstat/darkstat.install b/community/darkstat/darkstat.install
index a92bba909..fa0ccea48 100644
--- a/community/darkstat/darkstat.install
+++ b/community/darkstat/darkstat.install
@@ -2,10 +2,15 @@ daemon_name=darkstat
daemon_chroot=/var/"$daemon_name"
post_install() {
- /usr/sbin/useradd -s /bin/false -r -N -g nobody "$daemon_name"
if [ ! -d "$daemon_chroot" ]; then
install -d "$daemon_chroot"
fi
+ /usr/sbin/useradd \
+ --system \
+ --home "$daemon_chroot" \
+ --shell /bin/false \
+ --no-user-group \
+ --gid nobody "$daemon_name"
chown -R "$daemon_name":nobody "$daemon_chroot"
}