5
. /usr/share/debconf/confmodule
7
if [ -f /etc/dbconfig-common/maas.conf ]; then
8
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
9
. /usr/share/dbconfig-common/dpkg/postrm.pgsql
10
dbc_go maas-region-controller $@
18
if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
19
rm -rf /etc/apache2/conf.d/maas-http.conf
23
if [ -x /usr/sbin/invoke-rc.d ]; then
24
invoke-rc.d apache2 restart || true
28
if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
29
rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
32
# Remove rabbitmq/longpoll/celery
33
longpoll_user="maas_longpoll"
34
longpoll_vhost="/maas_longpoll"
35
workers_user="maas_workers"
36
workers_vhost="/maas_workers"
37
if [ -x /usr/sbin/rabbitmqctl ]; then
38
rabbitmqctl delete_vhost "$longpoll_vhost" || true
39
rabbitmqctl delete_user "$longpoll_user" || true
41
rabbitmqctl delete_vhost "$workers_vhost" || true
42
rabbitmqctl delete_user "$workers_user" || true