diff --git a/tmp/postinstall b/tmp/postinstall index 59b01ca..d9242ed 100644 --- a/tmp/postinstall +++ b/tmp/postinstall @@ -1,9 +1,9 @@ #!/bin/bash -if [ ! getent passwd nagios 2>&1 >/dev/null ]; then +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 +if ! getent group nobody 2>&1 >/dev/null; then groupadd -g 65534 nobody >/dev/null 2>/dev/null fi