diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | sitesummary-update-munin | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 5f6ff55..617411e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ sitesummary (0.1.0) UNRELEASED; urgency=low * Bump version number, as the package is getting closer to a production release. + * Only use includedir statement in munin configuration with + munin version 1.4.5 or newer. -- Petter Reinholdtsen <pere@debian.org> Mon, 26 Dec 2011 13:10:57 +0100 diff --git a/sitesummary-update-munin b/sitesummary-update-munin index b3faece..f1d4ce5 100755 --- a/sitesummary-update-munin +++ b/sitesummary-update-munin @@ -50,11 +50,18 @@ logdir $muninlogdir rundir $muninrundir tmpldir $munintmpldir +EOF + + # Munin supports the includedir statement since Squeeze + muninver=$(dpkg -l munin|grep munin|awk '{print $3}') + if dpkg --compare-versions "1.4.5" le "$muninver" ; then + cat <<EOF # (Exactly one) directory to include all files from. # includedir /etc/munin/munin-conf.d EOF + fi fi $nodes -m $muninopts |