Code

Install and modify our configuration files
authorAlexander Wirt <alexander.wirt@credativ.de>
Mon, 18 Feb 2013 13:15:21 +0000 (14:15 +0100)
committerAlexander Wirt <alexander.wirt@credativ.de>
Mon, 18 Feb 2013 13:15:21 +0000 (14:15 +0100)
debian/pnp4nagios-web-config-nagios3.install [new file with mode: 0644]
debian/pnp4nagios-web.install
debian/rules

diff --git a/debian/pnp4nagios-web-config-nagios3.install b/debian/pnp4nagios-web-config-nagios3.install
new file mode 100644 (file)
index 0000000..c3605a3
--- /dev/null
@@ -0,0 +1,2 @@
+etc/pnp4nagios/apache.conf
+etc/pnp4nagios/config.php
index 0bbade8d6c8134f1ed816d48fe63fd6fe5b13cf8..fccb4cb00ce7bf45b02376bc6d23b319ac79e654 100644 (file)
@@ -1,11 +1,9 @@
-etc/pnp4nagios/apache.conf
 etc/pnp4nagios/background.pdf
 etc/pnp4nagios/templates/
 etc/pnp4nagios/templates.d/
 etc/pnp4nagios/pages/
 etc/pnp4nagios/templates.special/
 etc/pnp4nagios/pnp4nagios_release
-etc/pnp4nagios/config.php
 usr/share/doc/pnp4nagios/examples/templates.special/
 usr/share/doc/pnp4nagios/examples/pages/
 usr/share/doc/pnp4nagios/examples/ssi/
index b9e40d08de68c35d6e5c7c361280869cb747a35a..acb0c5600f23195b40a864445039202bc3457e81 100755 (executable)
@@ -155,6 +155,16 @@ install: build
        rmdir debian/tmp/usr/share/pnp4nagios/html/application/hooks/
        #rmdir debian/tmp/usr/share/pnp4nagios/html/application/libraries/
 
+       #create modified version of icinga specific configs
+       mkdir -p debian/pnp4nagios-web-config-icinga/etc/pnp4nagios
+       sed -e 's/nagios3/icinga/' -e 's/Nagios/Icinga/' \
+               debian/tmp/etc/pnp4nagios/apache.conf >\
+               debian/pnp4nagios-web-config-icinga/etc/pnp4nagios/apache.conf
+
+       sed -e 's/nagios3/icinga/' -e 's/nagiosadmin/icingadmin/' \
+               debian/tmp/etc/pnp4nagios/config.php >\
+               debian/pnp4nagios-web-config-icinga/etc/pnp4nagios/config.php
+
        mkdir debian/tmp/etc/pnp4nagios/templates.d
        cp debian/README.templates.d debian/tmp/etc/pnp4nagios/templates.d/README