From d0e96eab91237fc3356b8a05fe3b17d6292c35e7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 19 Dec 2024 16:13:13 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql-community/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql-community/install.sh b/plugins/mysql-community/install.sh index 197524bcc6..35e594f48b 100755 --- a/plugins/mysql-community/install.sh +++ b/plugins/mysql-community/install.sh @@ -58,10 +58,10 @@ else OSNAME='unknow' fi -VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` +VERSION_ID=`cat /etc/*-release | grep 'VERSION_ID' | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` # 针对ubuntu24进行优化 -if [ "$OSNAME" == "ubuntu" ] && [ "$VERSION_ID" ~ "24" ];then +if [[ "$OSNAME" == "ubuntu" ]] && [[ "$VERSION_ID" =~ "24" ]]; then cur_dir=`pwd` cd /usr/lib/x86_64-linux-gnu if [ ! -f libaio.so.1 ];then