diff options
author | root <root@rshg054.dnsready.net> | 2012-03-15 00:01:19 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-15 00:01:19 +0000 |
commit | 14635ca5380a480450a66c3fcc29992d29a2bd8e (patch) | |
tree | a2f8e712c9e15b829397666c06d1cdd1a877d8a6 /community/darkstat/darkstat.install | |
parent | 01a0c4bc740842efa3bf1a7e1d6c8be5656e4e2a (diff) |
Thu Mar 15 00:01:19 UTC 2012
Diffstat (limited to 'community/darkstat/darkstat.install')
-rw-r--r-- | community/darkstat/darkstat.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/darkstat/darkstat.install b/community/darkstat/darkstat.install new file mode 100644 index 000000000..a92bba909 --- /dev/null +++ b/community/darkstat/darkstat.install @@ -0,0 +1,14 @@ +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 + chown -R "$daemon_name":nobody "$daemon_chroot" +} + +post_remove() { + /usr/sbin/userdel "$daemon_name" +} |