blob: 6ced15e1bffa67fe572ed1aa1b4fef7c6629997b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -e
# Apache2
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
echo "disabling Apache2 configuration ..."
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke disconf icingaweb2
fi
if [ -L /etc/apache2/conf.d/icingaweb2.conf ]; then
echo "removing link /etc/apache2/conf.d/icingaweb2.conf ..."
# remove link to config
rm -f /etc/apache2/conf.d/icingaweb2.conf
# reload webserver
[ -x $(which invoke-rc.d) ] && invoke-rc.d apache2 reload || true
fi
#DEBHELPER#
|