Mail archive
alpine-aports

[alpine-aports] [PATCH 04/15] main/dovecot: Properly set primary group in .pre-install.

From: Przemyslaw Pawelczyk <przemoc_at_zoho.com>
Date: Mon, 6 Jun 2016 02:05:04 +0200

Commit fb87e4fd6222 tried to fix problem I unintentionally brought in
commit ccc056dbf9d3 - system user creation doesn't add same named group
and uses nogroup as primary group unless explicitly specified via -G.

Commit a593d306c92f 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.
---
 main/dovecot/dovecot.pre-install | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main/dovecot/dovecot.pre-install b/main/dovecot/dovecot.pre-install
index e3ee636..213a6a6 100644
--- a/main/dovecot/dovecot.pre-install
+++ b/main/dovecot/dovecot.pre-install
_at_@ -2,7 +2,7 @@
 
 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 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 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
-- 
2.6.6
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Jun 06 2016 - 02:05:04 GMT