diff --git a/openvswitch.changes b/openvswitch.changes index b18bf2d..ee94bee 100644 --- a/openvswitch.changes +++ b/openvswitch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 27 16:06:58 UTC 2018 - Markos Chandras + +- Use correct user for logrotate script (bsc#1104049, b096fa42ddc2) + ------------------------------------------------------------------- Mon Sep 24 12:46:34 UTC 2018 - Markos Chandras diff --git a/openvswitch.spec b/openvswitch.spec index 98b2fa1..edbd5a8 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -518,6 +518,7 @@ find %{buildroot} -type f -name "*.la" -delete -print if [ $1 -eq 1 ]; then 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} sed -i \ @@ -526,6 +527,7 @@ if [ $1 -eq 1 ]; then %endif # In the case of upgrade, this is not needed chown -R openvswitch:openvswitch %{_sysconfdir}/openvswitch + chown -R openvswitch:openvswitch %{_localstatedir}/log/openvswitch fi %if 0%{?suse_version} %service_add_post ovsdb-server.service