mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
修复更新青龙命令
This commit is contained in:
parent
f117f6b39c
commit
0b551ddc0d
|
@ -98,6 +98,7 @@ check_pm2() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
echo -e "=====> 开始检测"
|
echo -e "=====> 开始检测"
|
||||||
|
pnpm install -g pm2
|
||||||
copy_dep
|
copy_dep
|
||||||
check_ql
|
check_ql
|
||||||
check_nginx
|
check_nginx
|
||||||
|
|
|
@ -243,8 +243,6 @@ usage() {
|
||||||
update_qinglong() {
|
update_qinglong() {
|
||||||
patch_version
|
patch_version
|
||||||
|
|
||||||
pnpm install -g pm2 &>/dev/null
|
|
||||||
|
|
||||||
local no_restart="$1"
|
local no_restart="$1"
|
||||||
local all_branch=$(git branch -a)
|
local all_branch=$(git branch -a)
|
||||||
local primary_branch="master"
|
local primary_branch="master"
|
||||||
|
@ -279,7 +277,7 @@ update_qinglong() {
|
||||||
local static_version=$(cat /ql/src/version.ts | perl -pe "s|.*\'(.*)\';\.*|\1|" | head -1)
|
local static_version=$(cat /ql/src/version.ts | perl -pe "s|.*\'(.*)\';\.*|\1|" | head -1)
|
||||||
echo -e "\n当前版本 $static_version...\n"
|
echo -e "\n当前版本 $static_version...\n"
|
||||||
|
|
||||||
rm -rf $dir_static
|
rm -rf $dir_static/*
|
||||||
cp -rf $ql_static_repo/* $dir_static
|
cp -rf $ql_static_repo/* $dir_static
|
||||||
if [[ $no_restart != "no-restart" ]]; then
|
if [[ $no_restart != "no-restart" ]]; then
|
||||||
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user