summaryrefslogtreecommitdiffstats
path: root/main/nagios/nagios.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-09-23 12:52:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-09-23 12:55:50 +0000
commit45af5bda242ec3f6b0a43af9cae6e90b511601ad (patch)
tree2e694d65b6bc796e5a2737e21335be1eab5f8a26 /main/nagios/nagios.pre-install
parent2ca85998fc7d7ab1dc49fd600566a7f7be7e64ac (diff)
downloadaports-45af5bda242ec3f6b0a43af9cae6e90b511601ad.tar.bz2
aports-45af5bda242ec3f6b0a43af9cae6e90b511601ad.tar.xz
main/nagios: create user and group as system user/group
ref #427
Diffstat (limited to 'main/nagios/nagios.pre-install')
-rw-r--r--main/nagios/nagios.pre-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/nagios/nagios.pre-install b/main/nagios/nagios.pre-install
index 303998302..52ca32900 100644
--- a/main/nagios/nagios.pre-install
+++ b/main/nagios/nagios.pre-install
@@ -1,4 +1,5 @@
#!/bin/sh
-adduser -H -h /var/nagios -s /bin/false -D nagios 2>/dev/null
+addgroup -S nagios 2>/dev/null
+adduser -S -G nagios -H -h /var/nagios -s /bin/false nagios 2>/dev/null
exit 0