Viitor_nrpe/tmp/postinstall

17 lines
376 B
Plaintext
Raw Normal View History

#!/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"