aboutsummaryrefslogtreecommitdiffstats
path: root/main/nagios/nagios.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-16 16:21:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-16 16:21:35 +0000
commit4653e1fb3db3b0c6132ffdb56880443f1915786f (patch)
tree6c3ddb502c81a6652138427007b1db47959f37da /main/nagios/nagios.pre-install
parentc3ca0dddf1bdf17d5453f130f791b67f2e80fba4 (diff)
downloadaports-4653e1fb3db3b0c6132ffdb56880443f1915786f.tar.bz2
aports-4653e1fb3db3b0c6132ffdb56880443f1915786f.tar.xz
main/nagios: use user 'nagios' instead of 'nobody'
fixes #375
Diffstat (limited to 'main/nagios/nagios.pre-install')
-rw-r--r--main/nagios/nagios.pre-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/nagios/nagios.pre-install b/main/nagios/nagios.pre-install
new file mode 100644
index 0000000000..0e036c6a44
--- /dev/null
+++ b/main/nagios/nagios.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+adduser -S -H -h /var/nagios -s /bin/false -D nagios 2>/dev/null
+exit 0