[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, master, updated. 11edf6f5dc75468468abe54feb2f173ac6e0c5b4
Alexander Wirt
formorer at debian.org
Fri Nov 11 21:15:02 UTC 2011
The following commit has been merged in the master branch:
commit 11edf6f5dc75468468abe54feb2f173ac6e0c5b4
Author: Alexander Wirt <formorer at debian.org>
Date: Fri Nov 11 22:14:27 2011 +0100
Migrate check-mk objects for nagios
diff --git a/debian/check-mk-config-nagios3.postinst b/debian/check-mk-config-nagios3.postinst
index ca0dacf..b5f9d5a 100644
--- a/debian/check-mk-config-nagios3.postinst
+++ b/debian/check-mk-config-nagios3.postinst
@@ -16,6 +16,19 @@ setperm() {
fi
}
+dpkg-maintscript-helper mv_conffile \
+ /etc/nagios3/conf.d/check_mk_templates.cfg \
+ /etc/nagios3/conf.d/check_mk/check_mk_templates.cfg \
+ 1.1.10-2 \
+ check-mk-config-nagios3. -- "$@"
+
+if [ -e '/etc/nagios3/conf.d/check_mk_objects.cfg' ];
+then
+ echo 'Migrate /etc/nagios3/conf.d/check_mk_objects.cfg to /etc/nagios3/conf.d/objects/check_mk/check_mk_objects.cfg'
+ mv /etc/nagios3/conf.d/check_mk_objects.cfg \
+ /etc/nagios3/conf.d/check_mk/check_mk_objects.cfg
+fi
+
case "$1" in
configure)
#make sure our nagios user exists
diff --git a/debian/check-mk-config-nagios3.postrm b/debian/check-mk-config-nagios3.postrm
new file mode 100644
index 0000000..5268839
--- /dev/null
+++ b/debian/check-mk-config-nagios3.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+dpkg-maintscript-helper mv_conffile \
+ /etc/nagios3/conf.d/check_mk_templates.cfg \
+ /etc/nagios3/conf.d/check_mk/check_mk_templates.cfg \
+ 1.1.10-2 \
+ check-mk-config-nagios3. -- "$@"
diff --git a/debian/check-mk-config-nagios3.prerm b/debian/check-mk-config-nagios3.prerm
new file mode 100644
index 0000000..5268839
--- /dev/null
+++ b/debian/check-mk-config-nagios3.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+dpkg-maintscript-helper mv_conffile \
+ /etc/nagios3/conf.d/check_mk_templates.cfg \
+ /etc/nagios3/conf.d/check_mk/check_mk_templates.cfg \
+ 1.1.10-2 \
+ check-mk-config-nagios3. -- "$@"
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list