diff options
author | Przemyslaw Pawelczyk <przemoc@zoho.com> | 2016-06-06 02:05:11 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-06-07 07:20:09 +0000 |
commit | 5708404c50a7e1bb8839c934e6ed29aa71dee873 (patch) | |
tree | 0498a3d94a7f5bf9ba2a5ae801441ed22029ff6a /community/caddy/caddy.pre-install | |
parent | a7d67c695ca2750e7088ca33cc365281c353af18 (diff) | |
download | aports-5708404c50a7e1bb8839c934e6ed29aa71dee873.tar.bz2 aports-5708404c50a7e1bb8839c934e6ed29aa71dee873.tar.xz |
community/[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:
- community/caddy
- community/domoticz
- community/oscam
- community/syncthing
Diffstat (limited to 'community/caddy/caddy.pre-install')
-rw-r--r-- | community/caddy/caddy.pre-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/community/caddy/caddy.pre-install b/community/caddy/caddy.pre-install index ccb4f07f8f..08302882ed 100644 --- a/community/caddy/caddy.pre-install +++ b/community/caddy/caddy.pre-install @@ -1,6 +1,7 @@ #!/bin/sh -adduser -S -D -h /var/lib/caddy -s /sbin/nologin -g caddy caddy 2>/dev/null +addgroup -S caddy 2>/dev/null +adduser -S -D -h /var/lib/caddy -s /sbin/nologin -G caddy -g caddy caddy 2>/dev/null adduser caddy www-data 2>/dev/null exit 0 |