From d5a5962ee2ef2afbdd385f91687f7f2bf31db019 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 31 Oct 2018 07:47:08 +0100 Subject: [PATCH] Don't fail on rabbitmq objects removal in Pandora uninstall --- pandora/uninstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/uninstall.sh b/pandora/uninstall.sh index 59f3475..8fbdeca 100755 --- a/pandora/uninstall.sh +++ b/pandora/uninstall.sh @@ -13,8 +13,8 @@ echo 'DROP DATABASE pandora; DROP ROLE pandora;' | lxc-attach -u 5432 -g 5432 po # Remove RabbitMQ vhost and user [ ! -e /run/openrc/started/rabbitmq ] && service rabbitmq start && STOP_RABBITMQ=1 -lxc-attach rabbitmq -- rabbitmqctl delete_vhost /pandora -lxc-attach rabbitmq -- rabbitmqctl delete_user pandora +lxc-attach rabbitmq -- rabbitmqctl delete_vhost /pandora || true +lxc-attach rabbitmq -- rabbitmqctl delete_user pandora || true [ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop exit 0