diff --git a/internal/resource/statefulset.go b/internal/resource/statefulset.go index c21dc0694..8463388ec 100644 --- a/internal/resource/statefulset.go +++ b/internal/resource/statefulset.go @@ -543,7 +543,7 @@ func (builder *StatefulSetBuilder) podTemplateSpec(previousPodAnnotations map[st "&& chmod 600 /var/lib/rabbitmq/.erlang.cookie ; " + "cp /tmp/rabbitmq-plugins/enabled_plugins /operator/enabled_plugins " + "&& chown 999:999 /operator/enabled_plugins ; " + - "chgrp 999 /var/lib/rabbitmq/mnesia/ ; " + + "chown 999:999 /var/lib/rabbitmq/mnesia/ ; " + "echo '[default]' > /var/lib/rabbitmq/.rabbitmqadmin.conf " + "&& sed -e 's/default_user/username/' -e 's/default_pass/password/' /tmp/default_user.conf >> /var/lib/rabbitmq/.rabbitmqadmin.conf " + "&& chown 999:999 /var/lib/rabbitmq/.rabbitmqadmin.conf " + diff --git a/internal/resource/statefulset_test.go b/internal/resource/statefulset_test.go index 8175fbdb0..2af91daca 100644 --- a/internal/resource/statefulset_test.go +++ b/internal/resource/statefulset_test.go @@ -1108,7 +1108,7 @@ var _ = Describe("StatefulSet", func() { "&& chmod 600 /var/lib/rabbitmq/.erlang.cookie ; "+ "cp /tmp/rabbitmq-plugins/enabled_plugins /operator/enabled_plugins "+ "&& chown 999:999 /operator/enabled_plugins ; "+ - "chgrp 999 /var/lib/rabbitmq/mnesia/ ; "+ + "chown 999:999 /var/lib/rabbitmq/mnesia/ ; "+ "echo '[default]' > /var/lib/rabbitmq/.rabbitmqadmin.conf "+ "&& sed -e 's/default_user/username/' -e 's/default_pass/password/' /tmp/default_user.conf >> /var/lib/rabbitmq/.rabbitmqadmin.conf "+ "&& chown 999:999 /var/lib/rabbitmq/.rabbitmqadmin.conf "+