Skip to content

Commit

Permalink
chore: cp mysql auditlog plugin instead of mv
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun committed Oct 18, 2024
1 parent 0ea5478 commit 28d715e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions addons/mysql/templates/clusterversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ spec:
- bash
- -c
- |
mv {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf {{ .Values.dataMountPath }}/plugin
cp {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
chown -R mysql:root {{ .Values.dataMountPath }}
skip_slave_start="OFF"
if [ -f {{ .Values.dataMountPath }}/data/.restore_new_cluster ]; then
Expand Down Expand Up @@ -128,8 +127,7 @@ spec:
- bash
- -c
- |
mv {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf {{ .Values.dataMountPath }}/plugin
cp {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
chown -R mysql:root {{ .Values.dataMountPath }}
skip_replica_start="OFF"
if [ -f {{ .Values.dataMountPath }}/data/.restore_new_cluster ]; then
Expand Down
3 changes: 1 addition & 2 deletions addons/mysql/templates/cmpd-mysql57.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ spec:
- bash
- -c
- |
mv {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf {{ .Values.dataMountPath }}/plugin
cp {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
chown -R mysql:root {{ .Values.dataMountPath }}
skip_slave_start="OFF"
if [ -f {{ .Values.dataMountPath }}/data/.restore_new_cluster ]; then
Expand Down
3 changes: 1 addition & 2 deletions addons/mysql/templates/cmpd-mysql80.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ spec:
- bash
- -c
- |
mv {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf {{ .Values.dataMountPath }}/plugin
cp {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
chown -R mysql:root {{ .Values.dataMountPath }}
skip_slave_start="OFF"
if [ -f {{ .Values.dataMountPath }}/data/.restore_new_cluster ]; then
Expand Down

0 comments on commit 28d715e

Please sign in to comment.