Merge "RabbitMQ: Dont remove definitions.json and erlang cookie when resetting"

This commit is contained in:
Zuul 2019-08-02 15:03:18 +00:00 committed by Gerrit Code Review
commit 8f749dd061

View File

@ -64,7 +64,7 @@ if ! [ "${POD_INCREMENT}" -eq "0" ] && ! [ -d "/var/lib/rabbitmq/mnesia" ] ; the
function reset_rabbit () {
rabbitmqctl shutdown || true
rm -rf /var/lib/rabbitmq/*
find /var/lib/rabbitmq/ ! -name 'definitions.json' ! -name '.erlang.cookie' -exec rm -rf {} +
exit 1
}