From 7fd4e7177b22c784e63cd7b4eee9503c5fdca035 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 8 Nov 2022 19:25:09 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql-yum/versions/5.7/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql-yum/versions/5.7/install.sh b/plugins/mysql-yum/versions/5.7/install.sh index c5fa5f1ae..c1c3fdbfe 100755 --- a/plugins/mysql-yum/versions/5.7/install.sh +++ b/plugins/mysql-yum/versions/5.7/install.sh @@ -30,7 +30,7 @@ OSNAME=`cat ${rootPath}/data/osname.pl` VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` echo "VERSION_ID:${VERSION_ID}" -if [ "$VERSION_ID" -gt "7" ]; then +if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" -gt "7" ]; then VERSION_ID=7 fi