Skip to content

Commit

Permalink
UBI default config adjusted by MDEV-34430 (collation) and MDEV-19123 …
Browse files Browse the repository at this point in the history
…charset
  • Loading branch information
grooverdan committed Jun 20, 2024
1 parent a8aeff3 commit 1c10627
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 11.4-ubi/docker.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4

character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+
character-set-collations=utf8mb4=uca1400_ai_ci # 11.3, 11.4

[client-server]
socket=/run/mariadb/mariadb.sock
Expand Down
1 change: 0 additions & 1 deletion 11.5-ubi/docker.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4

character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+

[client-server]
socket=/run/mariadb/mariadb.sock
Expand Down
2 changes: 0 additions & 2 deletions 11.6-ubi/docker.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ host-cache-size=0
skip-name-resolve

expire_logs_days=10
character-set-server=utf8mb4

character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+

[client-server]
socket=/run/mariadb/mariadb.sock
Expand Down
2 changes: 1 addition & 1 deletion docker.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4

character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+
character-set-collations=utf8mb4=uca1400_ai_ci # 11.3, 11.4
collation-server=utf8mb4_general_ci # 10*

[client-server]
Expand Down
6 changes: 6 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ update_version()
sed -e '/character-set-collations/d' docker.cnf > "$dir/docker.cnf"
else
sed -e '/collation-server/d' docker.cnf > "$dir/docker.cnf"
if [[ $version != 11.4 ]]; then
sed -i -e '/character-set-collations/d' "$dir/docker.cnf"
fi
if [[ $version != 11.[45] ]]; then
sed -i -e '/character-set/d' "$dir/docker.cnf"
fi
fi
sed -e "s!%%MARIADB_VERSION%%!${version%-*}!" MariaDB-ubi.repo > "$dir"/MariaDB.repo
fi
Expand Down

0 comments on commit 1c10627

Please sign in to comment.