Don't fail on rabbitmq objects removal in Pandora uninstall
This commit is contained in:
parent
5ba5461a80
commit
d5a5962ee2
@ -13,8 +13,8 @@ echo 'DROP DATABASE pandora; DROP ROLE pandora;' | lxc-attach -u 5432 -g 5432 po
|
|||||||
|
|
||||||
# Remove RabbitMQ vhost and user
|
# Remove RabbitMQ vhost and user
|
||||||
[ ! -e /run/openrc/started/rabbitmq ] && service rabbitmq start && STOP_RABBITMQ=1
|
[ ! -e /run/openrc/started/rabbitmq ] && service rabbitmq start && STOP_RABBITMQ=1
|
||||||
lxc-attach rabbitmq -- rabbitmqctl delete_vhost /pandora
|
lxc-attach rabbitmq -- rabbitmqctl delete_vhost /pandora || true
|
||||||
lxc-attach rabbitmq -- rabbitmqctl delete_user pandora
|
lxc-attach rabbitmq -- rabbitmqctl delete_user pandora || true
|
||||||
[ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop
|
[ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user