aboutsummaryrefslogtreecommitdiffstats
path: root/community/oscam/oscam.pre-install
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@zoho.com>2016-06-06 02:05:11 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-07 07:20:09 +0000
commit5708404c50a7e1bb8839c934e6ed29aa71dee873 (patch)
tree0498a3d94a7f5bf9ba2a5ae801441ed22029ff6a /community/oscam/oscam.pre-install
parenta7d67c695ca2750e7088ca33cc365281c353af18 (diff)
downloadaports-5708404c50a7e1bb8839c934e6ed29aa71dee873.tar.gz
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/oscam/oscam.pre-install')
-rw-r--r--community/oscam/oscam.pre-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/community/oscam/oscam.pre-install b/community/oscam/oscam.pre-install
index a9982c724b..cce6bcd5b9 100644
--- a/community/oscam/oscam.pre-install
+++ b/community/oscam/oscam.pre-install
@@ -1,6 +1,7 @@
#!/bin/sh
-adduser -S -D -H -s /sbin/nologin -g oscam oscam 2>/dev/null
+addgroup -S oscam 2>/dev/null
+adduser -S -D -H -s /sbin/nologin -G oscam -g oscam oscam 2>/dev/null
addgroup oscam usb 2>/dev/null
exit 0