V962 Branch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_nrpe@4402 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
51e2265830
16
tmp/postinstall
Normal file
16
tmp/postinstall
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! getent group nobody >/dev/null; then
|
||||||
|
groupadd -g 65534 nobody >/dev/null 2>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! getent group nagios >/dev/null; then
|
||||||
|
groupadd -g 28 nagios
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! getent passwd nagios >/dev/null; then
|
||||||
|
useradd -u 51 -g nagios -d /tmp nagios
|
||||||
|
fi
|
||||||
|
|
||||||
|
grep -q nrpe /etc/services || echo >>/etc/services "nrpe 5666/tcp # NRPE"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user