Skip to content

Commit

Permalink
Merge pull request #501 from wbagdon/patch-1
Browse files Browse the repository at this point in the history
Fix mnesia permissions in PV
  • Loading branch information
ChunyiLyu authored Dec 3, 2020
2 parents 72ac2ff + d1d7e9b commit 8f066d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/resource/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 " +
Expand Down
2 changes: 1 addition & 1 deletion internal/resource/statefulset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "+
Expand Down

0 comments on commit 8f066d1

Please sign in to comment.