Update ql.sh
This commit is contained in:
parent
c107ea3190
commit
e8188ddf53
@ -355,7 +355,7 @@ if [ "$access" != "2" ]; then
|
||||
if [ "$(grep -c "token" $CONFIG_PATH/auth.json)" != 0 ]; then
|
||||
log "7.开始安装或重装 Ninja"
|
||||
if [ "$INSTALL_NINJA" = true ]; then
|
||||
docker exec -it $CONTAINER_NAME bash -c "cd /ql;ps -ef|grep ninja|grep -v grep|awk '{print $1}'|xargs kill -9;rm -rf /ql/ninja;git clone https://ghproxy.com/https://github.com/littleCareless/ninja.git /ql/ninja;cd /ql/ninja/backend;pnpm install;cp .env.example .env;cp sendNotify.js /ql/scripts/sendNotify.js;sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env;pm2 start"
|
||||
docker exec -it $CONTAINER_NAME bash -c "cd /ql;ps -ef|grep ninja|grep -v grep|awk '{print $1}'|xargs kill -9;rm -rf /ql/ninja;git clone https://ghproxy.com/https://github.com/shufflewzc/ninja.git /ql/ninja;cd /ql/ninja/backend;pnpm install;cp .env.example .env;cp sendNotify.js /ql/scripts/sendNotify.js;sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env;pm2 start"
|
||||
docker exec -it $CONTAINER_NAME bash -c "sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env && cd /ql/ninja/backend && pm2 start"
|
||||
fi
|
||||
log "8.开始青龙内部配置"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user