Commit 3c1fa466 authored by Przemysław Pawełczyk's avatar Przemysław Pawełczyk Committed by Natanael Copa
Browse files

main/{npre, postgrey}: Properly set primary group in .pre-install.

Fixes the problem I unintentionally brought in commit ccc056db:
system user creation doesn't add same named group and uses nogroup as
primary group unless explicitly specified via -G.
parent 40521bda
adduser -S -D -H -h /dev/null -s /sbin/nologin -g nagios nagios 2>/dev/null
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
addgroup -S postgrey 2>/dev/null
adduser -S -D -H -h /dev/null -s /sbin/nologin -g postgrey postgrey 2>/dev/null
adduser -S -D -H -h /dev/null -s /sbin/nologin -G postgrey -g postgrey postgrey 2>/dev/null
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment