diff --git a/Scripts/sh/ql.sh b/Scripts/sh/ql.sh index aa7aac4..9a17056 100644 --- a/Scripts/sh/ql.sh +++ b/Scripts/sh/ql.sh @@ -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.开始青龙内部配置" diff --git a/Tasks/Daily.json b/Tasks/Daily.json index 71c46d9..822f0e8 100644 --- a/Tasks/Daily.json +++ b/Tasks/Daily.json @@ -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 },