更新重试器

This commit is contained in:
2026-02-23 21:26:48 +08:00
parent ac94ffc30f
commit c6722645d2
4 changed files with 134 additions and 34 deletions

View File

@ -1,26 +1,12 @@
# PT System Checking - 磁盘状态监控服务
# PT System Checking
一个轻量级的系统磁盘监控服务,定期检查磁盘可用空间并上报到指定服务器。
上报硬盘剩余空间到 Uptime Kuma 实例,以 ping 作为空间剩余
## 功能特性
- 自动检测所有非可移动磁盘的可用空间
- 定期上报磁盘状态到远程服务器
- 支持通过环境变量或命令行参数配置
- 支持 amd64 和 arm64 架构(适用于香橙派 Zero3
- 一键部署脚本,自动配置 systemd 服务
## 快速开始
## 部署
### 一键部署(推荐)
在目标设备上运行以下命令
```bash
curl -fsSL https://gitea.service.jazzwhom.top/Passthem/pt-disk-report/raw/branch/main/install.sh | sudo bash
```
或者下载后运行:
下载后运行(因为需要交互脚本)
```bash
wget https://gitea.service.jazzwhom.top/Passthem/pt-disk-report/raw/branch/main/install.sh
@ -46,20 +32,13 @@ wget https://gitea.service.jazzwhom.top/Passthem/pt-disk-report/raw/branch/main/
sudo bash update.sh
```
更新脚本会:
1. 检查当前安装的版本
2. 获取最新版本信息
3. 自动备份当前版本
4. 下载并替换新版本
5. 重启服务(如果更新失败会自动恢复备份)
### 卸载服务
```bash
sudo bash install.sh uninstall
```
## 本地构建
## 本地构建与发布
### 安装交叉编译工具链
@ -85,6 +64,12 @@ make prepare-release
- `install.sh` - 一键部署脚本
- `update.sh` - 一键更新脚本
### 发布 Gitea Release
```bash
make create-release VERSION=0.1.5
```
## 配置说明
服务支持以下配置项(通过环境变量):
@ -141,6 +126,3 @@ make test
make clean
```
## 许可证
根据项目需要添加许可证信息。