RabbitMQ: Dont remove definitions.json and erlang cookie when resetting
This PS udpated the reset node function to leave the assets generated via init containers in place when resetting the node. Change-Id: Iac52ca82e95bb372dbcbca0eeea3b262215e9c12 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
7a8bb7058b
commit
eef8ea131a
@ -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