From d7b6544e453c5a1e4d788c93a69c2ba02515eedf Mon Sep 17 00:00:00 2001 From: Alexander Wirt Date: Wed, 23 Jul 2014 18:57:33 +0200 Subject: [PATCH] Debian: Fix loading apache cgi modules fixes #6501 Signed-off-by: Michael Friedrich --- debian/icinga2-classicui.postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/icinga2-classicui.postinst b/debian/icinga2-classicui.postinst index 67636998c..57efaf2bd 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