From bdea1c1b7b7f2917d461c163f74cee262ff42111 Mon Sep 17 00:00:00 2001 From: kueller Date: Tue, 28 Apr 2009 16:59:28 +0000 Subject: [PATCH] User nagos wird auch noch benoetigt git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_nagos@4646 504e572c-2e33-0410-9681-be2bf7408885 --- tmp/postinstall | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tmp/postinstall b/tmp/postinstall index b03f415..59b01ca 100644 --- a/tmp/postinstall +++ b/tmp/postinstall @@ -1,4 +1,9 @@ #!/bin/bash -groupadd -g 65534 nobody >/dev/null 2>/dev/null +if [ ! getent passwd nagios 2>&1 >/dev/null ]; then + useradd -u 52 nagios >/dev/null 2>/dev/null +fi +if [ ! getent group nobody 2>&1 >/dev/null ]; then + groupadd -g 65534 nobody >/dev/null 2>/dev/null +fi