From ce37cd1963dd21a19d4061350219d5c816d6d41d356fb04766499b0e9abfbabb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 28 Sep 2018 00:18:04 +0000 Subject: [PATCH] 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 --- openvswitch.changes | 5 +++++ openvswitch.spec | 2 ++ 2 files changed, 7 insertions(+) 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