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 }