🐉ql extra.sh 🔨fix bug 2021-08-25 05:59:25

This commit is contained in:
QL 2021-08-25 05:59:25 +08:00
parent 39c8ef8f76
commit 53ee25697c

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## Mod: Build20210816V1 ## Mod: Build20210825V1
## 添加你需要重启自动执行的任意命令,比如 ql repo ## 添加你需要重启自动执行的任意命令,比如 ql repo
## 安装node依赖使用 pnpm install -g xxx xxxBuild 20210728-002 及以上版本的 code.sh可忽略 ## 安装node依赖使用 pnpm install -g xxx xxxBuild 20210728-002 及以上版本的 code.sh可忽略
## 安装python依赖使用 pip3 install xxxBuild 20210728-002 及以上版本的 code.sh可忽略 ## 安装python依赖使用 pip3 install xxxBuild 20210728-002 及以上版本的 code.sh可忽略
@ -126,10 +126,12 @@ done
# 🍪Ninja # 🍪Ninja
update_Ninja_normal(){ update_Ninja_normal(){
cd /ql/ninja/backend && git pull -f && pnpm install && pm2 start && cp sendNotify.js /ql/scripts/sendNotify.js cd /ql/ninja/backend && git checkout . && git pull
pnpm install && pm2 start
cp sendNotify.js /ql/scripts/sendNotify.js
} }
if [ "${Ninja}" = "up" ]; then if [ "$Ninja" = "up" ]; then
update_Ninja_normal & update_Ninja_normal &
fi fi
@ -201,6 +203,6 @@ install_dependencies_all(){
done done
} }
if [ "${dependencies}" = "yes" ]; then if [ "$dependencies" = "yes" ]; then
install_dependencies_all & install_dependencies_all &
fi fi