forked from pool/syncthing
Accepting request 896111 from network
OBS-URL: https://build.opensuse.org/request/show/896111 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syncthing?expand=0&rev=107
This commit is contained in:
commit
7022a4f931
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 29 12:40:56 UTC 2021 - Fabian Niepelt <fniepelt@takios.de>
|
||||
|
||||
- Fix User, Group, EnvironmentFile and ReadWritePaths in systemd.service unit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 14 08:02:12 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
|
@ -81,6 +81,14 @@ sed -i '/Service\]/a EnvironmentFile=-\/etc\/default/strelaysrv' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
sed -i 's,^ExecStart=.*,ExecStart=/usr/bin/strelaysrv $OPTIONS,' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
sed -i 's,EnvironmentFile=/etc/default/syncthing-relaysrv,EnvironmentFile=-/etc/default/syncthing-relaysrv,' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
sed -i 's/^User=.*/User=strelaysrv/' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
sed -i 's/^Group=.*/Group=strelaysrv/' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
sed -i 's,^ReadWritePaths=.*,ReadWritePaths=/var/lib/strelaysrv,' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
install -Dpm 0644 etc/linux-systemd/system/%{name}@.service \
|
||||
%{buildroot}%{_unitdir}/%{name}@.service
|
||||
install -Dpm 0644 etc/linux-systemd/system/%{name}-resume.service \
|
||||
|
Loading…
Reference in New Issue
Block a user