Files
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

15 lines
1.0 KiB
Bash

set -u
cd /opt/dshs/lib 2>/dev/null || cd /
echo "=== [A] 错误串来源 ==="
grep -rn "unknown_user" --include=*.js /opt/dshs/lib 2>/dev/null | head -8
echo "---"
grep -rn "\"unauthorized\"\|'unauthorized'" --include=*.js /opt/dshs/lib 2>/dev/null | head -8
echo "=== [B] dsh_hosts 结构 ==="
sudo -u postgres psql -p 15432 -d dshs -Atc "select column_name||':'||data_type from information_schema.columns where table_name='dsh_hosts' order by ordinal_position" 2>&1 | grep -v 'could not change'
echo "=== [C] dsh_hosts 内容 ==="
sudo -u postgres psql -p 15432 -d dshs -Atc "select * from dsh_hosts order by 1" 2>&1 | grep -v 'could not change' | head -30
echo "=== [D] domains 结构 ==="
sudo -u postgres psql -p 15432 -d dshs -Atc "select column_name||':'||data_type from information_schema.columns where table_name='domains' order by ordinal_position" 2>&1 | grep -v 'could not change'
echo "=== [E] domains 内容 ==="
sudo -u postgres psql -p 15432 -d dshs -Atc "select * from domains" 2>&1 | grep -v 'could not change' | head -30