aports/testing/buildbot-slave/buildbot-slave.pre-install
Przemyslaw Pawelczyk 94e0b0631f testing/[various]: Add group and use it as primary in .pre-* scripts.
Fixes the problem I unintentionally brought in commit ccc056dbf9:
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/buildbot
- testing/buildbot-slave
- testing/clapf

It should have been part of commit a835b69165, but was overlooked.
2016-06-20 13:35:25 +00:00

7 lines
149 B
Bash

#!/bin/sh
addgroup -S buildbot 2>/dev/null
adduser -S -D -H -h /home/buildbot -s /sbin/nologin -G buildbot -g buildbot buildbot 2>/dev/null
exit 0