[Pkg-nagios-changes] [pkg-icinga2] 10/15: Use new cli command style

Alexander Wirt formorer at debian.org
Thu Nov 20 13:22:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-icinga2.

commit ea389c7d740796919abb2991f2332a61f3fd3218
Author: Alexander Wirt <formorer at debian.org>
Date:   Thu Nov 20 09:48:19 2014 +0100

    Use new cli command style
---
 debian/icinga2-ido-mysql.postinst | 4 ++--
 debian/icinga2-ido-pgsql.postinst | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/icinga2-ido-mysql.postinst b/debian/icinga2-ido-mysql.postinst
index 753dece..dd16a19 100644
--- a/debian/icinga2-ido-mysql.postinst
+++ b/debian/icinga2-ido-mysql.postinst
@@ -21,7 +21,7 @@ if [ "$1" = configure ]; then
         if [ -L /etc/icinga2/features-enabled/ido-mysql.conf ]
         then
             echo "disable ido mysql feature"
-            icinga2-disable-feature ido-mysql
+            icinga2 feature disable ido-mysql
             echo "reloading icinga2"
             [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
         fi
@@ -29,7 +29,7 @@ if [ "$1" = configure ]; then
         if [ ! -L /etc/icinga2/features-enabled/ido-mysql.conf ]
         then
             echo "enable ido mysql feature"
-            icinga2-enable-feature ido-mysql
+            icinga2 feature enable ido-mysql
             echo "reloading icinga2"
             [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
 
diff --git a/debian/icinga2-ido-pgsql.postinst b/debian/icinga2-ido-pgsql.postinst
index e8fbad4..c900232 100644
--- a/debian/icinga2-ido-pgsql.postinst
+++ b/debian/icinga2-ido-pgsql.postinst
@@ -21,7 +21,7 @@ if [ "$1" = configure ]; then
         if [ -L /etc/icinga2/features-enabled/ido-pgsql.conf ]
         then
             echo "disable ido pgsql feature"
-            icinga2-disable-feature ido-pgsql
+            icinga2 feature disable ido-pgsql
             echo "reloading icinga2"
             [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
         fi
@@ -29,7 +29,7 @@ if [ "$1" = configure ]; then
         if [ ! -L /etc/icinga2/features-enabled/ido-pgsql.conf ]
         then
             echo "enable ido pgsql feature"
-            icinga2-enable-feature ido-pgsql
+            icinga2 feature disable ido-pgsql
             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-icinga2.git



More information about the Pkg-nagios-changes mailing list