Viitor_nagos/tmp/postinstall

10 lines
217 B
Plaintext
Raw Normal View History

#!/bin/bash
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