syncthing: Use systemd-sysusers for creating a system user account

- Drop dependency on 'adduser' package.

Tests:

- Functional tests for syncthing work.

- Installing syncthing app works. The system user and group are created with
proper UID/GID, shell, gecos, and home directory.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2026-05-13 15:37:32 -07:00
1 parent 0f98ed67e7
commit f4be9039d2
2 files changed
+8 -17

No files matched your search

@@ -0,0 +1,6 @@
# Create system user and group to run syncthing as system daemon (as opposed to
# running in particular user's account). The user is created at boot or when
# 'systemd-sysusers freedombox-syncthing.conf' is run. To override this file as
# system administrator, create a file /etc/sysusers.d/freedombox-syncthing.conf
# or link it to /dev/null.
u! syncthing - "Syncthing file synchronization server" /var/lib/syncthing