7 if [ -f /usr/share/debconf/confmodule ]; then
8 . /usr/share/debconf/confmodule
11 # Un-configure and restart webservers
12 db_get $PACKAGE/webserver || true
15 if [ -L /etc/apache2/conf.d/$PACKAGE.conf ]; then
16 rm -f /etc/apache2/conf.d/$PACKAGE.conf
20 if apache2ctl configtest 2>/dev/null; then
21 invoke-rc.d apache2 force-reload || true
23 echo "apache need to be manually reloaded"
27 if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
28 . /usr/share/dbconfig-common/dpkg/postrm.mysql
32 if [ "$1" = "purge" ]; then
33 # remove database config
34 rm -f /etc/$PACKAGE/database.php
35 if which ucf >/dev/null 2>&1; then
36 ucf --purge /etc/$PACKAGE/database.php