From 0efff889cdb952bb8376bccc2b8df016fa8821e4 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 6 Jul 2022 17:30:06 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql-ya/versions/5.7/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql-ya/versions/5.7/install.sh b/plugins/mysql-ya/versions/5.7/install.sh index a601dfa10..6df06d2c6 100755 --- a/plugins/mysql-ya/versions/5.7/install.sh +++ b/plugins/mysql-ya/versions/5.7/install.sh @@ -54,7 +54,7 @@ YUM_INSTALL() ####### #http://repo.mysql.com/ -if [ "${OSNAME}" == "centos" ] && [ "${VERSION_ID}" -lt "7" ] ;then +if [ "${OSNAME}" == "centos" ] && [ "${VERSION_ID}" -le "7" ] ;then wget -O /tmp/mysql57-community-release-el${VERSION_ID}.rpm http://repo.mysql.com/mysql57-community-release-el${VERSION_ID}.rpm rpm -ivh /tmp/mysql57-community-release-el${VERSION_ID}.rpm yum -y install mysql-server