- 变更规模:新增 514 / 修改 62 / 重命名 155 / 删除 4(归档重组与文档轮次) - .gitignore 修:`归档/**/db-cwd归一-备份-*/` —— 原规则写绝对层级(归档/db-cwd归一-…), 目录搬进 归档/配置与备份/ 后**静默失效**,43 MB 的 DB 备份又变成未跟踪 - .gitignore 补:嵌套 git 内部数据(归档/内嵌git-20261008/、归档/skills-git-旧线-20261007/dotgit-原样移出/) - .gitignore 补:运行态与部署副本(.workbuddy/collab/、.workbuddy/tools/、.workbuddy/.load-pending、.workbuddy/tmp-*) - .gitignore 补:备份件(*.bak-*) - 未跟踪文件从 2190 降到 890(其余为 归档/ 归档件与 .workbuddy/memory/ 知识文件,按口径入库)
21 lines
1.4 KiB
Bash
21 lines
1.4 KiB
Bash
set +e
|
|
echo "=== [R1] LE renewal 目录 ==="
|
|
ls -1 /etc/letsencrypt/renewal/ 2>/dev/null | head -10
|
|
echo "=== [R2] alotbuy.com 续期配置(去注释) ==="
|
|
grep -vE "^\s*#|^\s*$" /etc/letsencrypt/renewal/alotbuy.com.conf 2>/dev/null | head -25
|
|
echo "=== [R3] 证书 SAN ==="
|
|
openssl x509 -in /etc/letsencrypt/live/alotbuy.com/fullchain.pem -noout -subject -dates 2>/dev/null
|
|
openssl x509 -in /etc/letsencrypt/live/alotbuy.com/fullchain.pem -noout -ext subjectAltName 2>/dev/null | tr ',' '\n' | head -12
|
|
echo "=== [R4] certbot 与 DNS 插件 ==="
|
|
which certbot 2>/dev/null; certbot --version 2>&1 | head -2
|
|
certbot plugins 2>/dev/null | grep -iE "cloudflare|dns|webroot|nginx" | head -8
|
|
echo "=== [R5] 是否存在凭据文件(只报存在性,不打印内容) ==="
|
|
for p in /root/.secrets/cloudflare.ini /etc/letsencrypt/dns-cloudflare.ini /root/cloudflare.ini /etc/letsencrypt/cloudflare.ini; do
|
|
[ -f "$p" ] && echo "存在: $p ($(stat -c%s "$p") B, mode $(stat -c%a "$p"))" || echo "无: $p"
|
|
done
|
|
ls -la /root/.secrets/ 2>/dev/null | head -6
|
|
echo "=== [R6] dsh.alotbuy.com.conf 的证书路径 ==="
|
|
grep -nE "ssl_certificate|server_name|listen|proxy_pass" /www/server/panel/vhost/nginx/dsh.alotbuy.com.conf 2>/dev/null | head -10
|
|
echo "=== [R7] relay-direct.alotbuy.com 证书 ==="
|
|
grep -nE "ssl_certificate|server_name|listen" /www/server/panel/vhost/nginx/relay-direct.conf 2>/dev/null | head -8
|