Commit 40521bda authored by Przemysław Pawełczyk's avatar Przemysław Pawełczyk Committed by Natanael Copa

main/dovecot: Properly set primary group in .pre-install.

Commit fb87e4fd tried to fix 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.

Commit a593d306 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.
parent d642117d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
addgroup -S dovecot 2>/dev/null addgroup -S dovecot 2>/dev/null
addgroup -S dovenull 2>/dev/null addgroup -S dovenull 2>/dev/null
adduser -S -u 90 -D -H -h /dev/null -s /sbin/nologin -g dovecot dovecot 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 dovenull 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 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