Commit dddd4726 authored by Markus Wanner's avatar Markus Wanner

Add an apache_unlink step to the postrm of sqwebmail.

parent 42ec1e53
courier (1.0.5-2) UNRELEASED; urgency=medium
* Add an apache_unlink step to the postrm of sqwebmail.
Closes: #919840.
-- Markus Wanner <markus@bluegap.ch> Fri, 25 Jan 2019 20:12:59 +0100
courier (1.0.5-1) unstable; urgency=medium
[ Markus Wanner ]
......
......@@ -11,6 +11,21 @@ del_override() {
fi
}
apache24_uninstall() {
if [ -d /etc/apache2/conf-available ] && [ -L /etc/apache2/conf-available/sqwebmail.conf ]; then
# disable configuration on new install with apache2-mainscript-helper
if [ -z "$2" ]; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke disconf sqwebmail.conf
fi
fi
# remove symlink
rm /etc/apache2/conf-available/sqwebmail.conf
fi
}
if [ "$1" = "purge" ]; then
# remove cache with authentification info
rm -rf /var/cache/sqwebmail
......@@ -28,6 +43,9 @@ if [ "$1" = "purge" ]; then
# remove ispelldict configuration
rm -f /etc/courier/ispelldict
# possibly disable and unlink apache configuration
apache24_uninstall "$@"
del_override root courier 0755 /usr/lib/courier/courier/webmail
del_override courier courier 2755 /usr/lib/courier/courier/sqwebpasswd
del_override courier courier 0700 /var/cache/sqwebmail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment