mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复重启命令
This commit is contained in:
parent
3f54048127
commit
8ab2dc3280
|
@ -240,6 +240,7 @@ reload_qinglong() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$reload_target" == 'system' ]]; then
|
if [[ "$reload_target" == 'system' ]]; then
|
||||||
|
rm -rf ${dir_root}/back ${dir_root}/cli ${dir_root}/docker ${dir_root}/sample ${dir_root}/shell ${dir_root}/src
|
||||||
mv -f ${dir_tmp}/qinglong-${primary_branch}/* ${dir_root}/
|
mv -f ${dir_tmp}/qinglong-${primary_branch}/* ${dir_root}/
|
||||||
rm -rf $dir_static/*
|
rm -rf $dir_static/*
|
||||||
mv -f ${dir_tmp}/qinglong-static-${primary_branch}/* ${dir_static}/
|
mv -f ${dir_tmp}/qinglong-static-${primary_branch}/* ${dir_static}/
|
||||||
|
@ -260,7 +261,7 @@ update_qinglong() {
|
||||||
local mirror="gitee"
|
local mirror="gitee"
|
||||||
local downloadQLUrl="https://gitee.com/whyour/qinglong/repository/archive"
|
local downloadQLUrl="https://gitee.com/whyour/qinglong/repository/archive"
|
||||||
local downloadStaticUrl="https://gitee.com/whyour/qinglong-static/repository/archive"
|
local downloadStaticUrl="https://gitee.com/whyour/qinglong-static/repository/archive"
|
||||||
local githubStatus=$(curl -s -m 2 -IL "https://google.com" | grep 200)
|
local githubStatus=$(curl -s --noproxy "*" -m 2 -IL "https://google.com" | grep 200)
|
||||||
if [[ ! -z $githubStatus ]]; then
|
if [[ ! -z $githubStatus ]]; then
|
||||||
mirror="github"
|
mirror="github"
|
||||||
downloadQLUrl="https://github.com/whyour/qinglong/archive/refs/heads"
|
downloadQLUrl="https://github.com/whyour/qinglong/archive/refs/heads"
|
||||||
|
@ -314,6 +315,7 @@ check_update_dep() {
|
||||||
if [[ "$needRestart" == 'true' ]]; then
|
if [[ "$needRestart" == 'true' ]]; then
|
||||||
delete_pm2
|
delete_pm2
|
||||||
|
|
||||||
|
rm -rf ${dir_root}/back ${dir_root}/cli ${dir_root}/docker ${dir_root}/sample ${dir_root}/shell ${dir_root}/src
|
||||||
mv -f ${dir_tmp}/qinglong-${primary_branch}/* ${dir_root}/
|
mv -f ${dir_tmp}/qinglong-${primary_branch}/* ${dir_root}/
|
||||||
rm -rf $dir_static/*
|
rm -rf $dir_static/*
|
||||||
mv -f ${dir_tmp}/qinglong-static-${primary_branch}/* ${dir_static}/
|
mv -f ${dir_tmp}/qinglong-static-${primary_branch}/* ${dir_static}/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user