[Pkg-nagios-changes] [pkg-icinga2] 01/01: Fix dependency on apache2-utils and take care cgi is loaded

Alexander Wirt formorer at debian.org
Wed Jul 23 16:58:54 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 93ca878ad4395367db38a5c47d69fabada2ffba2
Author: Alexander Wirt <formorer at debian.org>
Date:   Wed Jul 23 18:57:33 2014 +0200

    Fix dependency on apache2-utils and take care cgi is loaded
---
 debian/control                    | 3 ++-
 debian/icinga2-classicui.postinst | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index f943257..5c3d379 100644
--- a/debian/control
+++ b/debian/control
@@ -124,7 +124,8 @@ Description: host and network monitoring system - documentation
 
 Package: icinga2-classicui
 Architecture: all
-Depends: icinga-cgi-bin | icinga-cgi (>= 1.9.0~),
+Depends: apache2-utils,
+         icinga-cgi-bin | icinga-cgi (>= 1.9.0~),
          icinga2-common (= ${source:Version}),
          ${misc:Depends}
 Recommends: apache2 | httpd
diff --git a/debian/icinga2-classicui.postinst b/debian/icinga2-classicui.postinst
index 6763699..57efaf2 100644
--- a/debian/icinga2-classicui.postinst
+++ b/debian/icinga2-classicui.postinst
@@ -56,10 +56,12 @@ case "$1" in
         if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
             . /usr/share/apache2/apache2-maintscript-helper
 
+            apache2_invoke enmod cgi
             apache2_invoke enconf icinga2-classicui
 
         # OLD methods for Apache < 2.4
         elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
+            a2enmod cgi
             # create symlink if not existing
             [ -f /etc/apache2/conf.d/icinga2-classicui.conf ] || ln -vs ../../icinga2/classicui/apache2.conf /etc/apache2/conf.d/icinga2-classicui.conf
 

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