From 2d6feebcf5737c92592780113ecc570e59518875 Mon Sep 17 00:00:00 2001 From: Akatsukiro Date: Thu, 18 Jan 2024 22:01:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=AB=98=E7=89=88?= =?UTF-8?q?=E6=9C=ACDebian=E5=AF=BC=E5=85=A5=E4=BD=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E6=BA=90=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5b6654c..2f1cfa4 100644 --- a/install.sh +++ b/install.sh @@ -159,10 +159,12 @@ fi install_maraidb() { echo -e "${green}开始安装MariaDB${plain}" - if [[ $systemFlag == "1" ]] || [[ $systemFlag == "2" ]]; then + if [[ $systemFlag == "1" && $os_version == "11" ]] || [[ $systemFlag == "2" ]]; then curl -sSL https://mariadb.org/mariadb_release_signing_key.asc | gpg --dearmor > /usr/share/keyrings/mariadb.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/mariadb.gpg] https://mirror-cdn.xtom.com/mariadb/repo/10.6/debian $(lsb_release -sc) main" > /etc/apt/sources.list.d/mariadb.list apt update && apt install mariadb-server -y + elif [[ $systemFlag == "1" && $os_version == "12" ]]; then + apt update && apt install mariadb-server -y elif [[ $systemFlag == "3" ]]; then dnf install https://mirror-cdn.xtom.com/mariadb/yum/10.6/centos/${os_version}/x86_64/mariadb-release-10.6-1.el8.noarch.rpm -y dnf install MariaDB-server MariaDB-client -y