Files
dsh_ai1net_server/归档/迁移/域名迁移_ai1net_20260919/recon47b.sh
T
admin c1b5e4d966 chore(工作区): 全量入库 + 补齐 .gitignore(以工作区为准)
- 变更规模:新增 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/ 知识文件,按口径入库)
2026-10-10 23:13:22 +08:00

31 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
set +e
C=/www/server/panel/vhost/cert
echo "=== [A] alotbuy.com.conf ==="
sed -n '1,80p' /www/server/panel/vhost/nginx/alotbuy.com.conf 2>/dev/null
echo "=== [B] 证书主体/签发者 ==="
for d in alotbuy.com dsh.alotbuy.com; do
f="$C/$d/fullchain.pem"
if [ -f "$f" ]; then
echo "--- $d ---"
openssl x509 -in "$f" -noout -subject -issuer -dates 2>/dev/null
openssl x509 -in "$f" -noout -ext subjectAltName 2>/dev/null | tr ',' '\n' | head -8
else
echo "--- $d : 无 fullchain.pem ---"
fi
done
echo "=== [C] /opt/dshs 内 alotbuy 命中 ==="
grep -rl "alotbuy" /opt/dshs 2>/dev/null | head -20
echo "=== [D] /opt/dshs 内 ai1net 命中 ==="
grep -rl "ai1net" /opt/dshs 2>/dev/null | head -10
echo "=== [E] /etc/dshs.env 域名/URL 相关 ==="
grep -inE "domain|host|url|origin|base|portal|cookie" /etc/dshs.env 2>/dev/null | head -25
echo "=== [F] BT 是否存有 DNS/Cloudflare API 凭据(只报存在性) ==="
for p in /www/server/panel/data/dns_accounts.json /www/server/panel/config/cloudflare.json /root/.acme.sh/account.conf; do
if [ -f "$p" ]; then echo "存在: $p($(wc -c < "$p") B, mtime $(date -r "$p" '+%F %T' 2>/dev/null))"; else echo "不存在: $p"; fi
done
ls -d /root/.acme.sh 2>/dev/null && ls /root/.acme.sh 2>/dev/null | head -12
echo "=== [G] portal 站点根 ==="
ls /www/wwwroot/dsh.alotbuy.com/ 2>/dev/null | head -15
echo "=== [H] 443/80 监听 ==="
ss -lntp 2>/dev/null | grep -E ":443 |:80 " | head -6