[Pkg-nagios-changes] [pkg-icinga2] 01/01: Run 'api setup' in post install task for icinga2-bin

Michael Friedrich dnsmichi-guest at moszumanska.debian.org
Wed Jul 1 10:30:48 UTC 2015


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

dnsmichi-guest pushed a commit to branch development
in repository pkg-icinga2.

commit 9fb7a43f0abad92c2e8938ef75516e48a655dfc3
Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Jun 25 18:04:08 2015 +0200

    Run 'api setup' in post install task for icinga2-bin
    
    If the api feature is already enabled, this will do
    nothing. Otherwise the api feature is enabled, local
    ca and certificate are generated and a new ApiUser
    object is added to the default configuration in conf.d
    
    For details, see https://dev.icinga.org/issues/9471
    
    refs #9471
---
 debian/icinga2-bin.postinst | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/icinga2-bin.postinst b/debian/icinga2-bin.postinst
index 52d78ae..c587aa6 100644
--- a/debian/icinga2-bin.postinst
+++ b/debian/icinga2-bin.postinst
@@ -21,10 +21,17 @@ enable_default_features() {
     # handle new default features here in the future
 }
 
+api_setup() {
+    # 'api setup' does not override already enabled api feature
+    icinga2 api setup
+}
+
 case "$1" in
     configure)
         # enable default features
         enable_default_features $@
+        # api setup
+        api_setup $@
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

-- 
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