diff --git a/logrotate-3.13.0-systemd_add_home_env.patch b/logrotate-3.13.0-systemd_add_home_env.patch new file mode 100644 index 0000000..4cc18a3 --- /dev/null +++ b/logrotate-3.13.0-systemd_add_home_env.patch @@ -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 diff --git a/logrotate.changes b/logrotate.changes index 96bc205..a549f29 100644 --- a/logrotate.changes +++ b/logrotate.changes @@ -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 diff --git a/logrotate.spec b/logrotate.spec index 3ead693..a24fb15 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -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 \