Accepting request 614890 from home:kstreitova:branches:Base:System

- Add "Environment=HOME=/root" to logrotate.service file in order 
  to allow mariadb to rotate its logs when the database has a root
  password defined [bsc#1093617]
- Added patch:
  * logrotate-3.13.0-systemd_add_home_env.patch

OBS-URL: https://build.opensuse.org/request/show/614890
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=69
This commit is contained in:
Tomáš Chvátal 2018-06-07 10:19:19 +00:00 committed by Git OBS Bridge
parent 98019583d1
commit 17e2917049
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Index: logrotate-3.11.0/examples/logrotate.service
===================================================================
--- logrotate-3.11.0.orig/examples/logrotate.service
+++ logrotate-3.11.0/examples/logrotate.service
@@ -9,3 +9,4 @@ ExecStart=/usr/sbin/logrotate /etc/logro
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
+Environment=HOME=/root

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Jun 7 09:51:50 UTC 2018 - kstreitova@suse.com
- Add "Environment=HOME=/root" to logrotate.service file in order
to allow mariadb to rotate its logs when the database has a root
password defined [bsc#1093617]
- Added patch:
* logrotate-3.13.0-systemd_add_home_env.patch
-------------------------------------------------------------------
Tue Apr 3 13:34:57 CEST 2018 - kukuk@suse.de

View File

@ -28,6 +28,7 @@ Source0: https://github.com/logrotate/logrotate/releases/download/%{versi
Source1: logrotate.wtmp
Source2: logrotate.default
Source100: %{name}-rpmlintrc
Patch0: logrotate-3.13.0-systemd_add_home_env.patch
BuildRequires: acl
BuildRequires: libacl-devel
BuildRequires: pkgconfig
@ -47,6 +48,7 @@ daily cron job.
%prep
%setup -q
%patch0 -p1
%build
%configure \