# 这个文件唯一的用途: 让 git 跟踪住这个空目录。 # # customization/custom/ 下的三个子目录会被逐个 bind mount 进容器: # custom/options -> /data/gitea/options # custom/public -> /data/gitea/public # custom/templates-> /data/gitea/templates # 如果 options/ 在全新克隆里不存在(它下面只放生成出来的 locale_zh-CN.json, 而那个文件 # 是 gitignore 的), 那么 docker compose 会【以 root 创建】这个挂载源目录 —— 之后 # 普通用户跑 customization/build.py 就写不进去: # PermissionError: [Errno 13] Permission denied: .../custom/options/locale # 于是语言文件永远生成不出来, 中文界面退回上游文案(「工单」又回来了)。 # 2026-09-13 第一次把生产切到部署克隆时真实踩到。 # # 有了这个占位文件, 目录随 checkout 就存在且属于当前用户, 问题从结构上消失。 # 真正有内容的是 custom/templates 与 custom/public, 它们不需要占位。