Skip to content

Commit d1d7e9b

Browse files
wbagdonWilliam Bagdon
authored andcommitted
Fix permissions on mnesia
1 parent c50f379 commit d1d7e9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/resource/statefulset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ func (builder *StatefulSetBuilder) podTemplateSpec(previousPodAnnotations map[st
509509
"&& chmod 600 /var/lib/rabbitmq/.erlang.cookie ; " +
510510
"cp /tmp/rabbitmq-plugins/enabled_plugins /operator/enabled_plugins " +
511511
"&& chown 999:999 /operator/enabled_plugins ; " +
512-
"chgrp 999 /var/lib/rabbitmq/mnesia/ ; " +
512+
"chown 999:999 /var/lib/rabbitmq/mnesia/ ; " +
513513
"echo '[default]' > /var/lib/rabbitmq/.rabbitmqadmin.conf " +
514514
"&& sed -e 's/default_user/username/' -e 's/default_pass/password/' /tmp/default_user.conf >> /var/lib/rabbitmq/.rabbitmqadmin.conf " +
515515
"&& chown 999:999 /var/lib/rabbitmq/.rabbitmqadmin.conf " +

internal/resource/statefulset_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ var _ = Describe("StatefulSet", func() {
10881088
"&& chmod 600 /var/lib/rabbitmq/.erlang.cookie ; "+
10891089
"cp /tmp/rabbitmq-plugins/enabled_plugins /operator/enabled_plugins "+
10901090
"&& chown 999:999 /operator/enabled_plugins ; "+
1091-
"chgrp 999 /var/lib/rabbitmq/mnesia/ ; "+
1091+
"chown 999:999 /var/lib/rabbitmq/mnesia/ ; "+
10921092
"echo '[default]' > /var/lib/rabbitmq/.rabbitmqadmin.conf "+
10931093
"&& sed -e 's/default_user/username/' -e 's/default_pass/password/' /tmp/default_user.conf >> /var/lib/rabbitmq/.rabbitmqadmin.conf "+
10941094
"&& chown 999:999 /var/lib/rabbitmq/.rabbitmqadmin.conf "+

0 commit comments

Comments
 (0)