🔨
This commit is contained in:
parent
f65771b5f0
commit
b53c95cd8d
@ -357,7 +357,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 $2}'|xargs kill -9;rm -rf /ql/ninja;git clone https://github.com/MoonBegonia/ninja.git /ql/ninja;cd /ql/ninja/backend;pnpm install;cp .env.example .env;cp sendNotify.js /ql/scripts/sendNotify.js;sed -i \"s/NINJA_PORT=5701/NINJA_PORT=${NINJA_PORT}/\" /ql/ninja/backend/.env;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 $2}'|xargs kill -9;rm -rf /ql/ninja;git clone https://ghproxy.com/https://github.com/MoonBegonia/ninja.git /ql/ninja;cd /ql/ninja/backend;pnpm install;cp .env.example .env;cp sendNotify.js /ql/scripts/sendNotify.js;sed -i \"s/NINJA_PORT=5701/NINJA_PORT=${NINJA_PORT}/\" /ql/ninja/backend/.env;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/NINJA_PORT=5701/NINJA_PORT=${NINJA_PORT}/\" /ql/ninja/backend/.env && sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env && cd /ql/ninja/backend && pm2 start"
|
||||
fi
|
||||
log "8.开始青龙内部配置"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name":"羊毛",
|
||||
"author":"Leon",
|
||||
"desc":"该订阅适用于 elecV2P,与其他软件并不兼容。相关说明参考:https://github.com/elecV2/elecV2P-dei/tree/master/docs/06-task.md",
|
||||
"date":"2021-07-27 17:22:00",
|
||||
"date":"2021-08-11 20:22:00",
|
||||
"list":[
|
||||
{
|
||||
"name":"安装依赖",
|
||||
@ -10,7 +10,7 @@
|
||||
"time":"0",
|
||||
"job":{
|
||||
"type":"exec",
|
||||
"target":"pip install requests beautifulsoup4"
|
||||
"target":"pip3 install -r requirements.txt"
|
||||
},
|
||||
"running":false
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user