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:
Pete Birley 2019-07-31 12:42:27 -05:00 committed by Pete Birley
parent 7a8bb7058b
commit eef8ea131a

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
}