From 810632e48c5c8c58e62d2abc7ff64efaec701b31 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 6 Jul 2022 16:38:07 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql-ya/versions/5.7/install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/mysql-ya/versions/5.7/install.sh b/plugins/mysql-ya/versions/5.7/install.sh index aa76f2752..7cecf5aed 100755 --- a/plugins/mysql-ya/versions/5.7/install.sh +++ b/plugins/mysql-ya/versions/5.7/install.sh @@ -53,15 +53,14 @@ YUM_INSTALL() { ####### -if [ "${OSNAME}" == "centos" ];then - wget -O /tmp/mysql80-community-release.rpm http://repo.mysql.com/mysql80-community-release-el${VERSION}.rpm -else - wget -O /tmp/mysql80-community-release.rpm http://repo.mysql.com/mysql80-community-release-el8.rpm -fi -rpm -ivh /tmp/mysql80-community-release.rpm + +wget -O /tmp/mysql-community-server-5.7.37-1.el7.x86_64.rpm https://cdn.mysql.com/archives/mysql-5.7/mysql-community-server-5.7.37-1.el7.x86_64.rpm + +rpm -ivh /tmp/mysql-community-server-5.7.37-1.el7.x86_64.rpm + yum -y install mysql-server -rm -rf /tmp/mysql80-community-release.rpm +rm -rf /tmp/mysql-community-server-5.7.37-1.el7.x86_64.rpm ####### }