aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pdns/pdns.pre-install
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@zoho.com>2016-06-06 02:05:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-07 07:20:09 +0000
commita835b69165330ce2160bb1349e436b7061a9e6dc (patch)
treeb3a7c47a02b7e3c56264b1986f0e866486e94beb /testing/pdns/pdns.pre-install
parent5708404c50a7e1bb8839c934e6ed29aa71dee873 (diff)
downloadaports-a835b69165330ce2160bb1349e436b7061a9e6dc.tar.gz
aports-a835b69165330ce2160bb1349e436b7061a9e6dc.tar.bz2
aports-a835b69165330ce2160bb1349e436b7061a9e6dc.tar.xz
testing/[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: - testing/dbmail - testing/dspam - testing/opensips - testing/pdns - testing/qpage - testing/rrdbot - testing/wt
Diffstat (limited to 'testing/pdns/pdns.pre-install')
-rw-r--r--testing/pdns/pdns.pre-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/pdns/pdns.pre-install b/testing/pdns/pdns.pre-install
index e80add6412..021b1e7e9c 100644
--- a/testing/pdns/pdns.pre-install
+++ b/testing/pdns/pdns.pre-install
@@ -1,5 +1,6 @@
#!/bin/sh
-adduser -S -D -H -h /var/empty -s /bin/false -g pdns pdns 2>/dev/null
+addgroup -S pdns 2>/dev/null
+adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/null
exit 0