Don't fail on rabbitmq objects removal in Pandora uninstall

This commit is contained in:
Disassembler 2018-10-31 07:47:08 +01:00
parent 5ba5461a80
commit d5a5962ee2
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -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