From 3c9c30fcb4a2d0de0a2a47a457339afeba1a03af Mon Sep 17 00:00:00 2001 From: Gloridust Date: Sun, 14 Jun 2026 01:17:36 +0800 Subject: [PATCH] =?UTF-8?q?chore(docker):=2000-woc-identity=20=E4=B9=9F?= =?UTF-8?q?=E7=94=A8=E6=98=BE=E5=BC=8F=20chmod=20755=EF=BC=88=E8=A1=A5?= =?UTF-8?q?=E9=BD=90=20#17=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #17 把脚本权限改为显式 755/644 以摆脱构建机 umask 影响,但它之后才加的 00-woc-identity 钩子仍是 chmod +x,是唯一漏网。该钩子由 root 运行(711 也能跑、 非功能性问题),此处仅为与其余几行统一、彻底做到与 umask 无关。 Co-Authored-By: Claude Opus 4.8 --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 055e0b3..fbd4fa5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -75,7 +75,7 @@ RUN chmod 755 /defaults/autostart # 启动钩子(00):给每个实例唯一且持久的 machine-id,避免所有实例共用镜像里烤死的同一个, # 触发腾讯"设备农场"风控导致登录即被强制退出。须在 autostart(拉起微信)之前执行,故用 00 前缀。 COPY woc-identity.sh /custom-cont-init.d/00-woc-identity -RUN chmod +x /custom-cont-init.d/00-woc-identity +RUN chmod 755 /custom-cont-init.d/00-woc-identity # 启动钩子(01):每次启动用镜像内最新 autostart 覆盖数据卷旧副本(否则旧实例升级后用不上新逻辑) COPY woc-update-autostart /custom-cont-init.d/01-woc-autostart