mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 09:21:41 +02:00
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
8 lines
164 B
Bash
8 lines
164 B
Bash
#!/bin/sh
|
|
|
|
addgroup -S dspam 2>/dev/null
|
|
adduser -S -D -h /var/lib/dspam -s /bin/false -G dspam -g dspam dspam 2>/dev/null
|
|
chown dspam:dspam /var/lib/dspam
|
|
|
|
exit 0
|