summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0eafbff)
raw | patch | inline | side by side (parent: 0eafbff)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 31 Jan 2012 12:54:42 +0000 (13:54 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 31 Jan 2012 12:54:42 +0000 (13:54 +0100) |
debian/changelog | patch | blob | history | |
debian/patches/adjust-template-path | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 298b36902189adff44e1df117c8bcb03bce1be9e..9e739eb76c03babf47d6b5a1f77b8fc52142778a 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
- Added a note about installation with Icinga referring to the different
htpasswd.users file location; thanks to Alexander Reichle-Schmehl for
reporting this (Closes: #646587).
+ * debian/patches/adjust-template-path:
+ - Added support for /etc/pnp4nagios/templates.d.
- -- Sebastian Harl <tokkee@debian.org> Tue, 31 Jan 2012 10:02:43 +0100
+ -- Sebastian Harl <tokkee@debian.org> Tue, 31 Jan 2012 13:53:51 +0100
pnp4nagios (0.6.13-1) unstable; urgency=low
index 9e4beeb73f4d10abe84da6354925bb19db09a18d..263d9b5f11c3cba6359d1d2724dbdd1ac9a918d2 100644 (file)
Description: Install templates into /etc/ rather than /usr/share/.
-Author: Sven Velt <sven@velt.de>
+ Also, add support for templates.d directory.
+Author: Sven Velt <sven@velt.de>, Sebastian Harl <tokkee@debian.org
Forwarded: not-needed
--- a/sample-config/pnp/config.php.in
+++ b/sample-config/pnp/config.php.in
-@@ -214,12 +214,12 @@
+@@ -214,12 +214,15 @@
# Add your own template directories here
# First match wins!
#$conf['template_dirs'][] = '/usr/local/check_mk/pnp-templates';
-$conf['template_dirs'][] = '@datarootdir@/templates';
+$conf['template_dirs'][] = '@sysconfdir@/templates';
++foreach (glob("/etc/pnp4nagios/templates.d/*", GLOB_ONLYDIR) as $dirname) {
++ $conf['template_dirs'][] = "$dirname";
++}
$conf['template_dirs'][] = '@datarootdir@/templates.dist';
#