From d6226d144dbcd086deb3dff49b8239af1d4ce222 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 24 Jun 2022 16:46:48 +0800 Subject: [PATCH] up --- plugins/mysql/versions/5.5/install.sh | 11 ++++++++--- plugins/mysql/versions/5.6/install.sh | 10 ++++++++-- plugins/mysql/versions/8.0/install.sh | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/plugins/mysql/versions/5.5/install.sh b/plugins/mysql/versions/5.5/install.sh index 975e22534..de0ef7a2a 100755 --- a/plugins/mysql/versions/5.5/install.sh +++ b/plugins/mysql/versions/5.5/install.sh @@ -55,9 +55,14 @@ Install_mysql() -DEXTRA_CHARSETS=all \ -DDEFAULT_CHARSET=utf8mb4 \ -DDEFAULT_COLLATION=utf8mb4_general_ci \ - && make && make install && make clean \ - && echo '5.5' > $serverPath/mysql/version.pl - echo '安装完成' > $install_tmp + && make && make install && make clean + + if [ -d $serverPath/mysql ];then + echo '5.5' > $serverPath/mysql/version.pl + echo '安装完成' > $install_tmp + else + echo '安装失败' > $install_tmp + fi fi } diff --git a/plugins/mysql/versions/5.6/install.sh b/plugins/mysql/versions/5.6/install.sh index 197b006cd..d2f512042 100755 --- a/plugins/mysql/versions/5.6/install.sh +++ b/plugins/mysql/versions/5.6/install.sh @@ -60,8 +60,14 @@ Install_mysql() -DDEFAULT_CHARSET=utf8mb4 \ -DDEFAULT_COLLATION=utf8mb4_general_ci \ && make && make install && make clean - echo '5.6' > $serverPath/mysql/version.pl - echo '安装完成' > $install_tmp + + + if [ -d $serverPath/mysql ];then + echo '5.6' > $serverPath/mysql/version.pl + echo '安装完成' > $install_tmp + else + echo '安装失败' > $install_tmp + fi fi } diff --git a/plugins/mysql/versions/8.0/install.sh b/plugins/mysql/versions/8.0/install.sh index 603a39a44..bce171f0a 100755 --- a/plugins/mysql/versions/8.0/install.sh +++ b/plugins/mysql/versions/8.0/install.sh @@ -79,7 +79,7 @@ Install_mysql() -DWITH_BOOST=${mysqlDir}/mysql-8.0.25/boost/ make && make install && make clean - if [ -d $serverPath/mysql ];then + if [ -d $serverPath/mysql ];then echo '8.0' > $serverPath/mysql/version.pl fi echo '安装完成' > $install_tmp