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