Improved debian packaging regarding apache 2.2 -> 2.4
parent
037a3a136a
commit
143ee59f5b
|
@ -34,7 +34,7 @@ case "$1" in
|
||||||
. /usr/share/apache2/apache2-maintscript-helper
|
. /usr/share/apache2/apache2-maintscript-helper
|
||||||
apache2_invoke enconf SOGo || exit $?
|
apache2_invoke enconf SOGo || exit $?
|
||||||
elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
|
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
|
ln -s ../conf-available/SOGo.conf /etc/apache2/conf.d/SOGo.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -18,7 +18,10 @@ if [ "$1" = "deconfigure" ] ; then
|
||||||
# Apache 2.2 / 2.4 kungfu
|
# Apache 2.2 / 2.4 kungfu
|
||||||
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
|
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
|
[ ! -L /etc/apache2/conf.d/SOGo.conf ] || rm /etc/apache2/conf.d/SOGo.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue