mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 08:55:08 +00:00
Improved debian packaging regarding apache 2.2 -> 2.4
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user