aports/main/dovecot/dovecot.pre-install
Przemyslaw Pawelczyk 40521bdafd main/dovecot: Properly set primary group in .pre-install.
Commit fb87e4fd62 tried to fix 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.

Commit a593d306c9 has nothing to do with it, as it only sets GECOS.

I cannot blame anyone (beside myself, obviously, for all this mess) as
-g and -G can be easily misread without conuslting --help output.
2016-06-07 07:20:09 +00:00

8 lines
277 B
Bash

#!/bin/sh
addgroup -S dovecot 2>/dev/null
addgroup -S dovenull 2>/dev/null
adduser -S -u 90 -D -H -h /dev/null -s /sbin/nologin -G dovecot -g dovecot dovecot 2>/dev/null
adduser -S -u 91 -D -H -h /dev/null -s /sbin/nologin -G dovenull -g dovenull dovenull 2>/dev/null
exit 0