mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修改 check/update 逻辑
This commit is contained in:
parent
b98b7646cb
commit
1745c72981
|
@ -90,9 +90,7 @@ check_pm2() {
|
||||||
main() {
|
main() {
|
||||||
echo -e "=====> 开始检测"
|
echo -e "=====> 开始检测"
|
||||||
npm i -g pnpm
|
npm i -g pnpm
|
||||||
pnpm setup &>/dev/null
|
patch_version
|
||||||
source ~/.bashrc
|
|
||||||
pnpm install -g &>/dev/null
|
|
||||||
pnpm add -g pm2
|
pnpm add -g pm2
|
||||||
copy_dep
|
copy_dep
|
||||||
check_ql
|
check_ql
|
||||||
|
|
|
@ -382,10 +382,6 @@ reload_pm2() {
|
||||||
echo -e "启动定时任务服务\n"
|
echo -e "启动定时任务服务\n"
|
||||||
pm2 delete schedule --source-map-support --time &>/dev/null
|
pm2 delete schedule --source-map-support --time &>/dev/null
|
||||||
pm2 start $dir_static/build/schedule.js -n 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() {
|
diff_time() {
|
||||||
|
|
|
@ -246,8 +246,6 @@ usage() {
|
||||||
|
|
||||||
## 更新qinglong
|
## 更新qinglong
|
||||||
update_qinglong() {
|
update_qinglong() {
|
||||||
patch_version &>/dev/null
|
|
||||||
|
|
||||||
local mirror="github"
|
local mirror="github"
|
||||||
local githubStatus=$(curl -s -m 3 -IL "https://github.com" | grep 200)
|
local githubStatus=$(curl -s -m 3 -IL "https://github.com" | grep 200)
|
||||||
if [ "$githubStatus" == "" ]; then
|
if [ "$githubStatus" == "" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user