From 02f73e648727122c378640b576032e5db1ea9aaf Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 8 Nov 2022 02:11:44 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql-yum/versions/8.0/install.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/mysql-yum/versions/8.0/install.sh b/plugins/mysql-yum/versions/8.0/install.sh index a7e0dcb6e..628159f4d 100755 --- a/plugins/mysql-yum/versions/8.0/install.sh +++ b/plugins/mysql-yum/versions/8.0/install.sh @@ -29,8 +29,18 @@ bash ${rootPath}/scripts/getos.sh OSNAME=`cat ${rootPath}/data/osname.pl` VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` +OS_SIGN=el9 +if [ "$OSNAME" == "centos" ];then + OS_SIGN=1.el${$VERSION_ID} +elif [ "$OSNAME" == "fedora" ]; then + OS_SIGN=10.fc${$VERSION_ID} +elif [ "$OSNAME" == "suse" ]; then + OS_SIGN=1.sl${$VERSION_ID} +fi + MYSQL_VER=8.0.30 -SUFFIX_NAME=${MYSQL_VER}-1.${OSNAME}${ARCH} + +SUFFIX_NAME=${MYSQL_VER}-${OS_SIGN}.${ARCH} YUM_INSTALL() {