From 0440d0f2865edc388c908744b2f161c0f9bb735e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 29 Jul 2024 11:57:35 +0800 Subject: [PATCH] update --- plugins/postgresql/versions/14/install.sh | 5 +++-- plugins/postgresql/versions/15/install.sh | 5 +++-- plugins/postgresql/versions/16/install.sh | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/postgresql/versions/14/install.sh b/plugins/postgresql/versions/14/install.sh index cea5dd030..7ea12bfbc 100755 --- a/plugins/postgresql/versions/14/install.sh +++ b/plugins/postgresql/versions/14/install.sh @@ -87,9 +87,10 @@ Install_App() if [ -d $serverPath/postgresql ];then echo "${VERSION}" > $serverPath/postgresql/version.pl - echo 'install successful' > $install_tmp + echo '安装postgresql成功' else - echo 'install fail' > $install_tmp + echo '安装postgresql失败' + rm -rf ${postgreDir}/postgresql-${VERSION}.tar.bz2 fi } diff --git a/plugins/postgresql/versions/15/install.sh b/plugins/postgresql/versions/15/install.sh index ce4b2dca3..591e71d6d 100755 --- a/plugins/postgresql/versions/15/install.sh +++ b/plugins/postgresql/versions/15/install.sh @@ -87,9 +87,10 @@ Install_App() if [ -d $serverPath/postgresql ];then echo "${VERSION}" > $serverPath/postgresql/version.pl - echo 'install successful' > $install_tmp + echo '安装postgresql成功' else - echo 'install fail' > $install_tmp + echo '安装postgresql失败' + rm -rf ${postgreDir}/postgresql-${VERSION}.tar.bz2 fi } diff --git a/plugins/postgresql/versions/16/install.sh b/plugins/postgresql/versions/16/install.sh index b25f66609..b09ba2736 100755 --- a/plugins/postgresql/versions/16/install.sh +++ b/plugins/postgresql/versions/16/install.sh @@ -87,9 +87,10 @@ Install_App() if [ -d $serverPath/postgresql ];then echo "${VERSION}" > $serverPath/postgresql/version.pl - echo '安装成功' + echo '安装postgresql成功' else - echo '安装失败' + echo '安装postgresql失败' + rm -rf ${postgreDir}/postgresql-${VERSION}.tar.bz2 fi }