aports/main/nrpe/nrpe.pre-install
Przemyslaw Pawelczyk 3c1fa46624 main/{npre, postgrey}: Properly set primary group in .pre-install.
Fixes the problem I unintentionally brought in commit ccc056dbf9:
system user creation doesn't add same named group and uses nogroup as
primary group unless explicitly specified via -G.
2016-06-07 07:20:09 +00:00

6 lines
136 B
Bash

#!/bin/sh
addgroup -S nagios 2>/dev/null
adduser -S -D -H -h /dev/null -s /sbin/nologin -G nagios -g nagios nagios 2>/dev/null
exit 0