Merge "RabbitMQ: Dont remove definitions.json and erlang cookie when resetting"
This commit is contained in:
commit
8f749dd061
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user