Mail archive
alpine-aports

[alpine-aports] [PATCH 01/15] testing/at: Properly set primary group in .pre-install.

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

Fixes the 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.
---
 testing/at/at.pre-install | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testing/at/at.pre-install b/testing/at/at.pre-install
index 3803510..78aa4bc 100644
--- a/testing/at/at.pre-install
+++ b/testing/at/at.pre-install
_at_@ -1,7 +1,6 @@
 #!/bin/sh
 
 addgroup -S at 2>/dev/null
-adduser -S -D -H -s /bin/false -g at at 2>/dev/null
-addgroup at at 2>/dev/null
+adduser -S -D -H -s /bin/false -G at -g at at 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:01 GMT