From 6bbbc465c4b4266483f552362f9443c8716063a1 Mon Sep 17 00:00:00 2001 From: Martin Yushko <139386268+mayushko26@users.noreply.github.com> Date: Tue, 14 Nov 2023 17:02:18 -0800 Subject: [PATCH] V2.7.2 - MariaDB failing to install (#328) * fix wrong MariaDB binary url * fix wrong MariaDB binary url --- docker/script/bootstrap.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docker/script/bootstrap.sh b/docker/script/bootstrap.sh index a71dfad8a..f0176d819 100644 --- a/docker/script/bootstrap.sh +++ b/docker/script/bootstrap.sh @@ -52,9 +52,15 @@ dnf install -y java-17-amazon-corretto sudo mkdir mariadb_rpm sudo chown airflow /mariadb_rpm -wget https://mirror.mariadb.org/yum/11.1.2/fedora38-amd64/rpms/MariaDB-common-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm -wget https://mirror.mariadb.org/yum/11.1.2/fedora38-amd64/rpms/MariaDB-shared-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm -wget https://mirror.mariadb.org/yum/11.1.2/fedora38-amd64/rpms/MariaDB-devel-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm +if [[ $(uname -p) == "aarch64" ]]; then + wget https://mirror.mariadb.org/yum/11.1/fedora38-aarch64/rpms/MariaDB-common-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm + wget https://mirror.mariadb.org/yum/11.1/fedora38-aarch64/rpms/MariaDB-shared-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm + wget https://mirror.mariadb.org/yum/11.1/fedora38-aarch64/rpms/MariaDB-devel-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm +else + wget https://mirror.mariadb.org/yum/11.1/fedora38-amd64/rpms/MariaDB-common-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm + wget https://mirror.mariadb.org/yum/11.1/fedora38-amd64/rpms/MariaDB-shared-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm + wget https://mirror.mariadb.org/yum/11.1/fedora38-amd64/rpms/MariaDB-devel-11.1.2-1.fc38.$(uname -p).rpm -P /mariadb_rpm +fi # install mariadb_devel and its dependencies sudo rpm -ivh /mariadb_rpm/*