forked from pool/syncthing
Accepting request 921483 from home:fusionfuture:branches:network
- Use /var/lib/syncthing-relaysrv in strelaysrv.service (boo#1190877). OBS-URL: https://build.opensuse.org/request/show/921483 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=223
This commit is contained in:
parent
5b85fcbf6f
commit
3d209092e4
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 26 08:51:40 UTC 2021 - Fusion Future <qydwhotmail@gmail.com>
|
||||
|
||||
- Use /var/lib/syncthing-relaysrv in strelaysrv.service (boo#1190877).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 7 12:24:57 UTC 2021 - Marius Kittler <marius.kittler@suse.com>
|
||||
|
||||
|
@ -74,7 +74,7 @@ cd ../src/github.com/syncthing/%{name}
|
||||
mv LICENSE AUTHORS CONDUCT.md CONTRIBUTING.md README.md "$st_dir"
|
||||
install -Dpm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -Dpm 0755 bin/strelaysrv %{buildroot}%{_bindir}/strelaysrv
|
||||
install -dm 0750 %{buildroot}/%{_localstatedir}/lib/strelaysrv
|
||||
install -dm 0750 %{buildroot}/%{_localstatedir}/lib/syncthing-relaysrv
|
||||
install -Dpm 0644 cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
sed -i '/Service\]/a EnvironmentFile=-\/etc\/default/strelaysrv' \
|
||||
@ -87,7 +87,7 @@ 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,' \
|
||||
sed -i 's,^ReadWritePaths=.*,ReadWritePaths=/var/lib/syncthing-relaysrv,' \
|
||||
%{buildroot}%{_unitdir}/strelaysrv.service
|
||||
install -Dpm 0644 etc/linux-systemd/system/%{name}@.service \
|
||||
%{buildroot}%{_unitdir}/%{name}@.service
|
||||
@ -149,6 +149,6 @@ getent passwd strelaysrv >/dev/null || \
|
||||
%license LICENSE
|
||||
%{_bindir}/strelaysrv
|
||||
%{_unitdir}/strelaysrv.service
|
||||
%dir %attr(750,strelaysrv,strelaysrv) %{_localstatedir}/lib/strelaysrv
|
||||
%dir %attr(750,strelaysrv,strelaysrv) %{_localstatedir}/lib/syncthing-relaysrv
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user