Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed Jun 20, 2024
1 parent 387c3a9 commit 88e8da7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bash <(curl -L https://gitee.com/TimeRainStarSky/Yunzai/raw/main/lib/tools/docke
| CMD | 启动命令 | tsyz |
| CMDPATH | 命令文件夹 | /usr/local/bin |
| DKNAME | 容器名 | Yunzai |
| DKURL | Docker 源 | docker.nju.edu.cn |
| DKURL | Docker 源 | docker.m.daocloud.io |
| GITURL | GIT 源 | https://gitee.com/TimeRainStarSky/Yunzai |
| APTURL | APT 源 | mirrors.ustc.edu.cn |
| APTDEP | APT 依赖 | chromium fonts-lxgw-wenkai fonts-noto-color-emoji |
Expand Down
13 changes: 7 additions & 6 deletions lib/tools/docker.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#TRSS Yunzai Docker 安装脚本 作者:时雨🌌星空
NAME=v1.0.0;VERSION=202405290
NAME=v1.0.0;VERSION=202406200
R="" G="" Y="" C="" B="" O=""
echo "$B———————————————————————————
$R TRSS$Y Yunzai$G Docker$C Script$O
Expand All @@ -13,7 +13,7 @@ DIR="${DIR:-$HOME/Yunzai}"
CMD="${CMD:-tsyz}"
CMDPATH="${CMDPATH:-/usr/local/bin}"
DKNAME="${DKNAME:-Yunzai}"
DKURL="${DKURL:-docker.nju.edu.cn}"
DKURL="${DKURL:-docker.m.daocloud.io}"
GITURL="${GITURL:-https://gitee.com/TimeRainStarSky/Yunzai}"
APTURL="${APTURL:-mirrors.ustc.edu.cn}"
APTDEP="${APTDEP:-chromium fonts-lxgw-wenkai fonts-noto-color-emoji}"
Expand Down Expand Up @@ -53,11 +53,12 @@ $R! 下载失败,5秒后切换镜像源$O"
sleep 5
((N++))
case "$N" in
1)DKURL="docker.nju.edu.cn";;
1)DKURL="docker.m.daocloud.io";;
2)DKURL="mirror.ccs.tencentyun.com";;
3)DKURL="mirror.baidubce.com";;
4)DKURL="dockerproxy.com";;
5)DKURL="docker.m.daocloud.io";;
3)DKURL="dockerhub.timeweb.cloud";;
4)DKURL="mirror.baidubce.com";;
5)DKURL="docker.nju.edu.cn";;
6)DKURL="dockerproxy.com";;
*)DKURL="docker.io";N=0
esac
done
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"node-fetch": "link:lib/modules/node-fetch",
"node-schedule": "^2.1.1",
"oicq": "link:lib/modules/oicq",
"pm2": "^5.4.0",
"pm2": "^5.4.1",
"puppeteer": "*",
"redis": "^4.6.14",
"sequelize": "^6.37.3",
Expand Down

0 comments on commit 88e8da7

Please sign in to comment.