From 8db997abe8beae2da9dd4cee1a69921db293ecd2 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 1 May 2023 16:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20check=20=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/check.sh | 8 +------- shell/share.sh | 2 -- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/shell/check.sh b/shell/check.sh index 7c377413..efc13ea6 100755 --- a/shell/check.sh +++ b/shell/check.sh @@ -54,9 +54,6 @@ check_ql() { echo -e "\n=====> 检测面板\n\n$api\n" if [[ $api =~ "
" ]]; then echo -e "=====> 面板服务启动正常\n" - else - echo -e "=====> 面板服务异常,重置基础环境\n" - reset_env fi } @@ -74,9 +71,6 @@ check_pm2() { echo -e "\n=====> 检测后台\n\n$api\n" if [[ $api =~ "{\"code\"" ]]; then echo -e "=====> 后台服务启动正常\n" - else - echo -e "=====> 后台服务异常,重置基础环境并重启后台\n" - reset_env fi } @@ -91,7 +85,7 @@ main() { npm i -g pnpm patch_version pnpm add -g pm2 tsx - update_depend + reset_env start_public copy_dep check_ql diff --git a/shell/share.sh b/shell/share.sh index fde34a84..bc990aca 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -303,8 +303,6 @@ update_depend() { npm_install_2 $dir_scripts fi - npm_install_2 $dir_root - cd $dir_current }