Skip to content

Commit fcdfee2

Browse files
committed
arm bug fix for mariadb
1 parent 4c6b63d commit fcdfee2

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

cyberpanel.sh

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -840,21 +840,29 @@ if [[ $Server_OS = "CentOS" ]] ; then
840840
rm -f /etc/yum.repos.d/epel.repo.rpmsave
841841

842842
if [[ "$Server_OS_Version" = "9" ]]; then
843+
844+
# Check if architecture is aarch64
845+
if uname -m | grep -q 'aarch64' ; then
846+
# Run the following commands if architecture is aarch64
847+
/usr/bin/crb enable
848+
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
849+
fi
850+
843851
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms || yum config-manager --set-enabled crb > /dev/null 2>&1
844852
yum install -y https://cyberpanel.sh/dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
845853
Check_Return "yum repo" "no_exit"
846854
yum install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm
847855
Check_Return "yum repo" "no_exit"
848-
cat <<EOF >/etc/yum.repos.d/MariaDB.repo
849-
# MariaDB 10.4 CentOS repository list - created 2021-08-06 02:01 UTC
850-
# http://downloads.mariadb.org/mariadb/repositories/
851-
[mariadb]
852-
name = MariaDB
853-
baseurl = http://yum.mariadb.org/10.11/rhel9-amd64/
854-
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
855-
enabled=1
856-
gpgcheck=1
857-
EOF
856+
# cat <<EOF >/etc/yum.repos.d/MariaDB.repo
857+
## MariaDB 10.4 CentOS repository list - created 2021-08-06 02:01 UTC
858+
## http://downloads.mariadb.org/mariadb/repositories/
859+
#[mariadb]
860+
#name = MariaDB
861+
#baseurl = http://yum.mariadb.org/10.11/rhel9-amd64/
862+
#gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
863+
#enabled=1
864+
#gpgcheck=1
865+
#EOF
858866
fi
859867

860868
if [[ "$Server_OS_Version" = "8" ]]; then
@@ -1043,12 +1051,6 @@ if [[ "$Server_OS" = "CentOS" ]] || [[ "$Server_OS" = "openEuler" ]] ; then
10431051

10441052
#!/bin/bash
10451053

1046-
# Check if architecture is aarch64
1047-
if uname -m | grep -q 'aarch64' ; then
1048-
# Run the following commands if architecture is aarch64
1049-
/usr/bin/crb enable
1050-
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
1051-
fi
10521054

10531055
dnf install -y libnsl zip wget strace net-tools curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel MariaDB-server MariaDB-client MariaDB-devel curl-devel git platform-python-devel tar socat python3 zip unzip bind-utils gpgme-devel
10541056
Check_Return

0 commit comments

Comments
 (0)