mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
Compare commits
2 Commits
9fb433d6ee
...
6aa9d07486
Author | SHA1 | Date | |
---|---|---|---|
|
6aa9d07486 | ||
|
6553604e95 |
@ -52,7 +52,7 @@
|
||||
],
|
||||
"BAIDU":[
|
||||
{
|
||||
"data_url":"https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||
"data_url":"https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||
"submit_url":"http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx",
|
||||
"times":10
|
||||
},
|
||||
|
@ -9,14 +9,14 @@ CRONTAB_FILE="cron/crontab_list.sh"
|
||||
|
||||
if [ ! -f "$CONFIG_FILE" ]; then
|
||||
echo "config.json 不存在. 开始下载默认文件..."
|
||||
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/config.template.json -o $CONFIG_FILE
|
||||
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/config.template.json -o $CONFIG_FILE
|
||||
else
|
||||
echo "config.json 已存在. 跳过下载。"
|
||||
fi
|
||||
|
||||
if [ ! -f "$CRONTAB_FILE" ]; then
|
||||
echo "crontab_list.sh 不存在. 开始下载默认文件..."
|
||||
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/crontab_list.sh -o $CRONTAB_FILE
|
||||
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/crontab_list.sh -o $CRONTAB_FILE
|
||||
else
|
||||
echo "crontab_list.sh 已存在. 跳过下载。"
|
||||
fi
|
||||
@ -41,7 +41,7 @@ else
|
||||
else
|
||||
echo "docker-compose 环境存在,将使用 docker-compose 命令启动容器..."
|
||||
echo "下载 docker-compose.yml 文件"
|
||||
curl -O https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/docker-compose.yml
|
||||
curl -O https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/docker-compose.yml
|
||||
echo "开始通过 docker-compose 命令创建容器"
|
||||
docker-compose pull
|
||||
docker-compose up -d
|
||||
|
@ -27,7 +27,7 @@ import { Callout } from 'nextra/components'
|
||||
2. 更新 image 镜像{' '}
|
||||
|
||||
```bash copy
|
||||
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
|
||||
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
|
||||
```
|
||||
|
||||
<Callout
|
||||
|
@ -24,7 +24,7 @@ import { FileTree } from 'nextra/components'
|
||||
运行如下命令一键启动并创建服务
|
||||
|
||||
```bash copy
|
||||
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
|
||||
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
|
||||
```
|
||||
|
||||
> 运行成功会自动创建如下目录结构, 并成功启动 docker 服务。
|
||||
@ -121,7 +121,7 @@ docker exec dailycheckin sh /dailycheckin/default_task.sh
|
||||
## 升级 Docker Image
|
||||
|
||||
```bash copy
|
||||
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
|
||||
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
|
||||
```
|
||||
|
||||
## 附录
|
||||
|
@ -68,7 +68,7 @@ import { Cards, Card } from 'nextra/components'
|
||||
{
|
||||
"BAIDU": [
|
||||
{
|
||||
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||
"data_url": "https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||
"submit_url": "http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx",
|
||||
"times": 10
|
||||
},
|
||||
|
@ -71,7 +71,7 @@ import { Steps } from 'nextra/components'
|
||||
],
|
||||
"BAIDU": [
|
||||
{
|
||||
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||
"data_url": "https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||
"submit_url": "http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx",
|
||||
"times": 10
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user