1
0

Accepting request 1120480 from home:hillwood:branches:server:proxy

- Fix boo#1216372 and boo#1216373, run systemd service as a dedicated user and group

OBS-URL: https://build.opensuse.org/request/show/1120480
OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=16
This commit is contained in:
Hillwood Yang 2023-10-26 07:27:29 +00:00 committed by Git OBS Bridge
parent a177f76828
commit 1e68d5ca5d
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
-------------------------------------------------------------------
Tue Oct 24 14:38:46 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>
- Fix boo#1216372 and boo#1216373
- Fix boo#1216372 and boo#1216373, run systemd service as a dedicated user and group
-------------------------------------------------------------------
Mon Sep 25 14:02:49 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>

View File

@ -86,7 +86,7 @@ getent passwd shadowsocks >/dev/null || %{_sbindir}/useradd --system -c "shadows
%service_add_post %{name}-client.service
%service_add_post %{name}-server.service
%service_add_post %{name}-manager.service
chown shadowsocks:shadowsocks %{_sysconfdir}/shadowsocks -R
chown root:shadowsocks %{_sysconfdir}/shadowsocks -R
%preun
%service_del_preun %{name}-client.service
@ -105,6 +105,7 @@ chown shadowsocks:shadowsocks %{_sysconfdir}/shadowsocks -R
%{_sbindir}/rc%{name}-*
%{_unitdir}/%{name}-*.service
%dir %{_sysconfdir}/shadowsocks
# %config(noreplace) %attr(660,%{name},root) %{_sysconfdir}/shadowsocks
%config %{_sysconfdir}/shadowsocks/%{name}.json
%changelog