[munin] EL5/6 do not have logrotate su directive.

fenris02 fenris02 at fedoraproject.org
Sat Dec 1 01:48:57 UTC 2012


commit 2821122cf22713717f1cfc43cf848419bef24de7
Author: D. Johnson <fenris02 at fedoraproject.org>
Date:   Fri Nov 30 19:48:24 2012 -0600

    EL5/6 do not have logrotate su directive.

 munin.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/munin.spec b/munin.spec
index 4260161..c10a277 100644
--- a/munin.spec
+++ b/munin.spec
@@ -374,6 +374,11 @@ install -m 0644 %{SOURCE2} %{buildroot}/etc/munin/plugin-conf.d/hddtemp_smartctl
 # install logrotate scripts
 install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node
 install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin
+%if ! 0%{?fedora} > 15 || 0%{?rhel} > 6
+# Fedora >= 16 requires 'su' directive.
+sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin-node
+sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin
+%endif
 
 # install config for postfix under fedora
 install -m 0644 %{SOURCE6} %{buildroot}/etc/munin/plugin-conf.d/postfix


More information about the scm-commits mailing list