From 52b3b9836480e785da4809ffb0d19e92a18e4ac9 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Wed, 4 Jun 2025 13:27:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0Gitea=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E7=89=88=E6=9C=AC=E5=B9=B6=E4=BF=AE=E5=A4=8Ddufs?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将Gitea的Docker镜像从1.23.7升级到1.23.8版本 - 修正dufs的stack.yml文件中的项目名称错误 - 新增smartctl.job脚本用于定期收集硬盘SMART信息 ``` 解释: 1. 使用`chore`类型因为这些变更属于维护性任务 2. 主要变更包括: - Gitea镜像版本升级 - dufs配置文件中项目名称修正 - 新增硬盘监控脚本 3. 保持简洁,重点描述主要变更 4. 使用中文符合要求,并遵循50字符限制 --- crontab/smartctl.job | 10 ++++++++++ dufs/stack.yml | 4 ++-- gitea/env.cfg | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 crontab/smartctl.job diff --git a/crontab/smartctl.job b/crontab/smartctl.job new file mode 100644 index 0000000..120de6b --- /dev/null +++ b/crontab/smartctl.job @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +smartctl --all -d megaraid,0 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,1 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,2 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,3 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,4 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,5 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,6 /dev/sda >> /root/smartctl.$(date +%y%m%d).log +smartctl --all -d megaraid,7 /dev/sda >> /root/smartctl.$(date +%y%m%d).log \ No newline at end of file diff --git a/dufs/stack.yml b/dufs/stack.yml index 1aeb10e..0d8ef3f 100644 --- a/dufs/stack.yml +++ b/dufs/stack.yml @@ -1,7 +1,7 @@ # path:: mkdir -pv /data/volumes/dufs/data && mkdir -pv /data/mygit/config/dufs # disc:: 请修改 ./config/config.yaml中的配置, 并将其复制到“/data/mygit/config/dufs”目录中 -# pull:: docker compose -p memos --env-file ./dufs/env.cfg -f ./dufs/stack.yml pull -# run:: docker compose -p memos --env-file ./dufs/env.cfg -f ./dufs/stack.yml up -d +# pull:: docker compose -p dufs --env-file ./dufs/env.cfg -f ./dufs/stack.yml pull +# run:: docker compose -p dufs --env-file ./dufs/env.cfg -f ./dufs/stack.yml up -d services: dufs: diff --git a/gitea/env.cfg b/gitea/env.cfg index 32dca9a..065a450 100644 --- a/gitea/env.cfg +++ b/gitea/env.cfg @@ -1,4 +1,4 @@ -IMAGE_TAG=gitea/gitea:1.23.7-rootless +IMAGE_TAG=gitea/gitea:1.23.8-rootless Volumes_PATH=/data/volumes/gitea LAY_SSH_HOST_PORT=22 SSH_HOST_PORT=2222 \ No newline at end of file