修改 check/update 逻辑

This commit is contained in:
whyour 2022-11-29 00:05:50 +08:00
parent b98b7646cb
commit 1745c72981
3 changed files with 1 additions and 9 deletions

View File

@ -90,9 +90,7 @@ check_pm2() {
main() {
echo -e "=====> 开始检测"
npm i -g pnpm
pnpm setup &>/dev/null
source ~/.bashrc
pnpm install -g &>/dev/null
patch_version
pnpm add -g pm2
copy_dep
check_ql

View File

@ -382,10 +382,6 @@ reload_pm2() {
echo -e "启动定时任务服务\n"
pm2 delete schedule --source-map-support --time &>/dev/null
pm2 start $dir_static/build/schedule.js -n schedule --source-map-support --time &>/dev/null
echo -e "启动公开服务\n"
pm2 delete public --source-map-support --time &>/dev/null
pm2 start $dir_static/build/public.js -n public --source-map-support --time &>/dev/null
}
diff_time() {

View File

@ -246,8 +246,6 @@ usage() {
## 更新qinglong
update_qinglong() {
patch_version &>/dev/null
local mirror="github"
local githubStatus=$(curl -s -m 3 -IL "https://github.com" | grep 200)
if [ "$githubStatus" == "" ]; then