[Pkg-nagios-changes] [pkg-icinga-web] 01/01: Fix enable feature for newer i2 versions
Alexander Wirt
formorer at debian.org
Tue Dec 9 07:19:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
formorer pushed a commit to branch master
in repository pkg-icinga-web.
commit 1603edb3ca9d7a995a950d58a7ec9e4374c77c31
Author: Alexander Wirt <formorer at debian.org>
Date: Tue Dec 9 08:18:21 2014 +0100
Fix enable feature for newer i2 versions
---
debian/icinga-web-config-icinga2-ido-mysql.postinst | 8 ++++++--
debian/icinga-web-config-icinga2-ido-pgsql.postinst | 7 ++++++-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/debian/icinga-web-config-icinga2-ido-mysql.postinst b/debian/icinga-web-config-icinga2-ido-mysql.postinst
index 3a103b0..7497ab2 100644
--- a/debian/icinga-web-config-icinga2-ido-mysql.postinst
+++ b/debian/icinga-web-config-icinga2-ido-mysql.postinst
@@ -30,8 +30,12 @@ is_fresh_install()
enable_icinga2_commandpipe() {
if is_fresh_install $@; then
echo "enabling icinga2 features for classicui"
- icinga2-enable-feature command
-
+ if [ -e "/usr/sbin/icinga2-enable-feature" ]
+ then
+ icinga2-enable-feature command
+ else
+ icinga2 feature enable command
+ fi
echo "reloading icinga2"
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
fi
diff --git a/debian/icinga-web-config-icinga2-ido-pgsql.postinst b/debian/icinga-web-config-icinga2-ido-pgsql.postinst
index 7b65e39..f62334d 100644
--- a/debian/icinga-web-config-icinga2-ido-pgsql.postinst
+++ b/debian/icinga-web-config-icinga2-ido-pgsql.postinst
@@ -30,7 +30,12 @@ is_fresh_install()
enable_icinga2_commandpipe() {
if is_fresh_install $@; then
echo "enabling icinga2 features for classicui"
- icinga2-enable-feature command
+ if [ -e "/usr/sbin/icinga2-enable-feature" ]
+ then
+ icinga2-enable-feature command
+ else
+ icinga2 feature enable command
+ fi
echo "reloading icinga2"
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga-web.git
More information about the Pkg-nagios-changes
mailing list