Files
gentoo_repo/net-p2p/syncthing/files/syncthing-1.18.4-tool_users.patch
Hadrien Dussuel d465dde2aa syncthing 2.0.5
2025-09-03 10:51:03 +02:00

26 lines
757 B
Diff

Let us save ourselves the pain of messing with renamed system accounts
use the old names, for now at least.
--- a/cmd/stdiscosrv/etc/linux-systemd/stdiscosrv.service
+++ b/cmd/stdiscosrv/etc/linux-systemd/stdiscosrv.service
@@ -9,7 +9,7 @@
ExecStart=/usr/bin/stdiscosrv $DISCOSRV_OPTS
# Hardening
-User=syncthing-discosrv
+User=stdiscosrv
Group=syncthing
ProtectSystem=strict
ReadWritePaths=/var/lib/syncthing-discosrv
--- a/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
+++ b/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
@@ -9,7 +9,7 @@
ExecStart=/usr/bin/strelaysrv -nat=${NAT} $RELAYSRV_OPTS
# Hardening
-User=syncthing-relaysrv
+User=strelaysrv
Group=syncthing
ProtectSystem=strict
ReadWritePaths=/var/lib/syncthing-relaysrv