SHA256
1
0
forked from pool/openvswitch

Accepting request 638823 from home:markoschandras:network

- Use correct user for logrotate script (bsc#1104049, b096fa42ddc2)

OBS-URL: https://build.opensuse.org/request/show/638823
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=161
This commit is contained in:
Dirk Mueller 2018-09-28 00:18:04 +00:00 committed by Git OBS Bridge
parent fd6adfc343
commit ce37cd1963
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 27 16:06:58 UTC 2018 - Markos Chandras <mchandras@suse.de>
- Use correct user for logrotate script (bsc#1104049, b096fa42ddc2)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 24 12:46:34 UTC 2018 - Markos Chandras <mchandras@suse.de> Mon Sep 24 12:46:34 UTC 2018 - Markos Chandras <mchandras@suse.de>

View File

@ -518,6 +518,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
if [ $1 -eq 1 ]; then if [ $1 -eq 1 ]; then
sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' %{_sysconfdir}/sysconfig/openvswitch sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' %{_sysconfdir}/sysconfig/openvswitch
sed -i 's:\(.*su\).*:\1 openvswitch openvswitch:' %{_sysconfdir}/logrotate.d/openvswitch
%if %{with dpdk} %if %{with dpdk}
sed -i \ sed -i \
@ -526,6 +527,7 @@ if [ $1 -eq 1 ]; then
%endif %endif
# In the case of upgrade, this is not needed # In the case of upgrade, this is not needed
chown -R openvswitch:openvswitch %{_sysconfdir}/openvswitch chown -R openvswitch:openvswitch %{_sysconfdir}/openvswitch
chown -R openvswitch:openvswitch %{_localstatedir}/log/openvswitch
fi fi
%if 0%{?suse_version} %if 0%{?suse_version}
%service_add_post ovsdb-server.service %service_add_post ovsdb-server.service