Improved debian packaging regarding apache 2.2 -> 2.4

pull/85/head
Ludovic Marcotte 2015-05-15 09:38:58 -04:00
parent 037a3a136a
commit 143ee59f5b
2 changed files with 5 additions and 2 deletions

View File

@ -34,7 +34,7 @@ case "$1" in
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enconf SOGo || exit $?
elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
if [ -d /etc/apache2/conf.d/ -a ! -L /etc/apache2/conf.d/SOGo.conf ]; then
if [ -d /etc/apache2/conf.d/ -a ! -e /etc/apache2/conf.d/SOGo.conf ]; then
ln -s ../conf-available/SOGo.conf /etc/apache2/conf.d/SOGo.conf
fi
fi

View File

@ -18,7 +18,10 @@ if [ "$1" = "deconfigure" ] ; then
# Apache 2.2 / 2.4 kungfu
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
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