aports/community/syncthing/syncthing.pre-install
Przemyslaw Pawelczyk 5708404c50 community/[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:
- community/caddy
- community/domoticz
- community/oscam
- community/syncthing
2016-06-07 07:20:09 +00:00

7 lines
157 B
Bash

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