From fa0d5b552106d1aed5bb0b80e4ff9f0fe327fdb7 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 23 Jun 2022 19:51:58 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql/versions/8.0/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/versions/8.0/install.sh b/plugins/mysql/versions/8.0/install.sh index 2a7f63615..303fefa19 100755 --- a/plugins/mysql/versions/8.0/install.sh +++ b/plugins/mysql/versions/8.0/install.sh @@ -58,7 +58,10 @@ Install_mysql() -DFORCE_INSOURCE_BUILD=1 \ -DWITH_BOOST=${mysqlDir}/mysql-8.0.25/boost/ make && make install && make clean - echo '8.0' > $serverPath/mysql/version.pl + + if [ -d $serverPath/mysql ];then + echo '8.0' > $serverPath/mysql/version.pl + fi echo '安装完成' > $install_tmp fi }