Rabbitmq: Correct reset_rabbit function
Made correction to this function to not attempt to delete /var/lib/rabbitmq/ Change-Id: Ied16be1ec83d528f2660ef96389c3f236983aa79
This commit is contained in:
parent
f5df62d836
commit
87afa2fb8c
@ -64,7 +64,7 @@ if ! [ "${POD_INCREMENT}" -eq "0" ] && ! [ -d "/var/lib/rabbitmq/mnesia" ] ; the
|
|||||||
|
|
||||||
function reset_rabbit () {
|
function reset_rabbit () {
|
||||||
rabbitmqctl shutdown || true
|
rabbitmqctl shutdown || true
|
||||||
find /var/lib/rabbitmq/ ! -name 'definitions.json' ! -name '.erlang.cookie' -exec rm -rf {} +
|
find /var/lib/rabbitmq/* ! -name 'definitions.json' ! -name '.erlang.cookie' -exec rm -rf {} +
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user