Skip to content

Commit 942cd53

Browse files
committed
MDEV-27033: remove debain version from its name
1 parent 9749368 commit 942cd53

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

10.9/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ RUN set -ex; \
7676
apt-key list
7777

7878
# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
79-
ARG MARIADB_MAJOR=10.9
80-
ENV MARIADB_MAJOR $MARIADB_MAJOR
8179
ARG MARIADB_VERSION=1:10.9.0+maria~jammy
8280
ENV MARIADB_VERSION $MARIADB_VERSION
8381
# release-status:Alpha
@@ -100,8 +98,8 @@ RUN set -e;\
10098
# also, we set debconf keys to make APT a little quieter
10199
RUN set -ex; \
102100
{ \
103-
echo "mariadb-server-$MARIADB_MAJOR" mysql-server/root_password password 'unused'; \
104-
echo "mariadb-server-$MARIADB_MAJOR" mysql-server/root_password_again password 'unused'; \
101+
echo "mariadb-server" mysql-server/root_password password 'unused'; \
102+
echo "mariadb-server" mysql-server/root_password_again password 'unused'; \
105103
} | debconf-set-selections; \
106104
apt-get update; \
107105
apt-get install -y \

update.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ update_version()
6767
10.5)
6868
sed -i '/backwards compat/d' "$version/Dockerfile"
6969
;;
70+
10.9 | 10.10)
71+
# quoted $ intentional
72+
# shellcheck disable=SC2016
73+
sed -i -e '/^ARG MARIADB_MAJOR/d' \
74+
-e '/^ENV MARIADB_MAJOR/d' \
75+
-e 's/-\$MARIADB_MAJOR//' \
76+
"$version/Dockerfile"
77+
;&
7078
*)
7179
sed -i -e '/^CMD/s/mysqld/mariadbd/' \
7280
-e '/backwards compat/d' "$version/Dockerfile"

0 commit comments

Comments
 (0)