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:
sg774j 2019-08-15 10:28:11 -05:00 committed by Sangeet Gupta
parent f5df62d836
commit 87afa2fb8c

View File

@ -64,7 +64,7 @@ if ! [ "${POD_INCREMENT}" -eq "0" ] && ! [ -d "/var/lib/rabbitmq/mnesia" ] ; the
function reset_rabbit () {
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
}