commit 2821122cf22713717f1cfc43cf848419bef24de7
Author: D. Johnson <fenris02(a)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
Show replies by thread