From 87afa2fb8cbbeb5d11c2731f0601cb61cd024ceb Mon Sep 17 00:00:00 2001 From: sg774j Date: Thu, 15 Aug 2019 10:28:11 -0500 Subject: [PATCH] Rabbitmq: Correct reset_rabbit function Made correction to this function to not attempt to delete /var/lib/rabbitmq/ Change-Id: Ied16be1ec83d528f2660ef96389c3f236983aa79 --- rabbitmq/templates/bin/_rabbitmq-start.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rabbitmq/templates/bin/_rabbitmq-start.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-start.sh.tpl index ae0568908..a175e68be 100644 --- a/rabbitmq/templates/bin/_rabbitmq-start.sh.tpl +++ b/rabbitmq/templates/bin/_rabbitmq-start.sh.tpl @@ -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 }