From 5708404c50a7e1bb8839c934e6ed29aa71dee873 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Mon, 6 Jun 2016 02:05:11 +0200 Subject: 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 --- community/syncthing/syncthing.pre-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'community/syncthing/syncthing.pre-install') diff --git a/community/syncthing/syncthing.pre-install b/community/syncthing/syncthing.pre-install index a2ee46c831..685d7ed629 100644 --- a/community/syncthing/syncthing.pre-install +++ b/community/syncthing/syncthing.pre-install @@ -1,5 +1,6 @@ #!/bin/sh -adduser -S -D -H -h /var/lib/syncthing -s /sbin/nologin -g syncthing syncthing 2>/dev/null +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 -- cgit v1.2.3