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
26
/etc/init.d/apache2 restart || true
30
if getent passwd maas >/dev/null; then
35
if [ -L /etc/tgt/conf.d/maas.conf ]; then
36
rm -rf /etc/tgt/conf.d/maas.conf
40
if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
41
rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
44
# Remove rabbitmq/longpoll/celery
45
longpoll_user="maas_longpoll"
46
longpoll_vhost="/maas_longpoll"
47
workers_user="maas_workers"
48
workers_vhost="/maas_workers"
49
if [ -x /usr/sbin/rabbitmqctl ]; then
50
rabbitmqctl delete_vhost "$longpoll_vhost" || true
51
rabbitmqctl delete_user "$longpoll_user" || true
53
rabbitmqctl delete_vhost "$workers_vhost" || true
54
rabbitmqctl delete_user "$workers_user" || true