mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Debian: Fix loading apache cgi modules
fixes #6501 Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
This commit is contained in:
parent
1e4ddc2a1a
commit
d7b6544e45
2
debian/icinga2-classicui.postinst
vendored
2
debian/icinga2-classicui.postinst
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user