From adf3df510e4dbc24b57c45fb43328fbf170ada48 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 19 Dec 2024 16:01:12 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql-community/install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/mysql-community/install.sh b/plugins/mysql-community/install.sh index 910240c6c..189d7a58d 100755 --- a/plugins/mysql-community/install.sh +++ b/plugins/mysql-community/install.sh @@ -64,8 +64,15 @@ VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk - if [ "$OSNAME" == "ubuntu" ] && [ "$VERSION_ID" ~ "24" ];then cur_dir=`pwd` cd /usr/lib/x86_64-linux-gnu - ln -s libaio.so.1t64.0.2 libaio.so.1 - ln -s libancursesw.so.6.4 libaio.so.6 + if [ -f libaio.so.1 ];then + ln -s libaio.so.1t64.0.2 libaio.so.1 + fi + + if [ -f libancurses.so.6 ];then + ln -s libancursesw.so.6.4 libancurses.so.6 + fi + + cd $cur_dir fi