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