2012-04-10 17:35:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# summary of how this script can be called:
|
|
|
|
# * <prerm> `remove'
|
|
|
|
# * <old-prerm> `upgrade' <new-version>
|
|
|
|
# * <new-prerm> `failed-upgrade' <old-version>
|
|
|
|
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
|
|
|
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
|
|
|
# <package-being-installed> <version> `removing'
|
|
|
|
# <conflicting-package> <version>
|
|
|
|
# for details, see /usr/share/doc/packaging-manual/
|
|
|
|
|
|
|
|
#DEBHELPER#
|
2018-10-29 15:48:25 +01:00
|
|
|
if [ "$1" = "deconfigure" ] ; then
|
2012-04-10 17:35:51 +02:00
|
|
|
|
2018-10-29 15:48:25 +01:00
|
|
|
# Apache 2.2 / 2.4 kungfu
|
|
|
|
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
|
|
|
|
|
|
|
|
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
|
|
|
|
. /usr/share/apache2/apache2-maintscript-helper
|
|
|
|
apache2_invoke disconf SOGo || exit $?
|
|
|
|
elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
|
|
|
|
[ ! -L /etc/apache2/conf.d/SOGo.conf ] || rm /etc/apache2/conf.d/SOGo.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
2012-04-10 17:35:51 +02:00
|
|
|
exit 0
|