diff options
author | Przemyslaw Pawelczyk <przemoc@zoho.com> | 2016-06-06 02:05:10 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-06-07 07:20:09 +0000 |
commit | a7d67c695ca2750e7088ca33cc365281c353af18 (patch) | |
tree | 0187cbc1372ed89ec27520602565f55b156a8fa6 /main/djbdns | |
parent | 976e09d0664c68c9cadbc95c1711d1a2a437c403 (diff) | |
download | aports-a7d67c695ca2750e7088ca33cc365281c353af18.tar.bz2 aports-a7d67c695ca2750e7088ca33cc365281c353af18.tar.xz |
main/[various]: Add group and use it as primary in .pre-* scripts.
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.
Brings status quo regarding primary groups of users created in packages:
- main/apache2
- main/aports-build
- main/atheme-iris
- main/clamav
- main/clamsmtp
- main/coova-chilli
- main/dhcp
- main/djbdns
- main/ez-ipupdate
- main/fetchmail
- main/freeswitch
- main/gitolite
- main/gnats
- main/gross
- main/icecast
- main/memcached
- main/ngircd
- main/openntpd
- main/snort
- main/squid
- main/transmission
- main/znc
Diffstat (limited to 'main/djbdns')
-rw-r--r-- | main/djbdns/dnscache.pre-install | 3 | ||||
-rw-r--r-- | main/djbdns/tinydns.pre-install | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/main/djbdns/dnscache.pre-install b/main/djbdns/dnscache.pre-install index 664732ca54..f59549a438 100644 --- a/main/djbdns/dnscache.pre-install +++ b/main/djbdns/dnscache.pre-install @@ -1,5 +1,6 @@ #!/bin/sh -adduser -S -D -H -h /etc/dnscache -g dnscache -s /sbin/nologin dnscache 2>/dev/null +addgroup -S dnscache 2>/dev/null +adduser -S -D -H -h /etc/dnscache -G dnscache -g dnscache -s /sbin/nologin dnscache 2>/dev/null exit 0 diff --git a/main/djbdns/tinydns.pre-install b/main/djbdns/tinydns.pre-install index 85ba7e7e20..da47789e25 100644 --- a/main/djbdns/tinydns.pre-install +++ b/main/djbdns/tinydns.pre-install @@ -1,5 +1,6 @@ #!/bin/sh -adduser -S -D -H -h /etc/tinydns -s /sbin/nologin -g tinydns tinydns 2>/dev/null +addgroup -S tinydns 2>/dev/null +adduser -S -D -H -h /etc/tinydns -s /sbin/nologin -G tinydns -g tinydns tinydns 2>/dev/null exit 0 |