mirror of
https://github.com/Gloridust/WechatOnCloud.git
synced 2026-06-16 19:53:53 +08:00
chore(docker): 00-woc-identity 也用显式 chmod 755(补齐 #17)
PR #17 把脚本权限改为显式 755/644 以摆脱构建机 umask 影响,但它之后才加的 00-woc-identity 钩子仍是 chmod +x,是唯一漏网。该钩子由 root 运行(711 也能跑、 非功能性问题),此处仅为与其余几行统一、彻底做到与 umask 无关。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ RUN chmod 755 /defaults/autostart
|
|||||||
# 启动钩子(00):给每个实例唯一且持久的 machine-id,避免所有实例共用镜像里烤死的同一个,
|
# 启动钩子(00):给每个实例唯一且持久的 machine-id,避免所有实例共用镜像里烤死的同一个,
|
||||||
# 触发腾讯"设备农场"风控导致登录即被强制退出。须在 autostart(拉起微信)之前执行,故用 00 前缀。
|
# 触发腾讯"设备农场"风控导致登录即被强制退出。须在 autostart(拉起微信)之前执行,故用 00 前缀。
|
||||||
COPY woc-identity.sh /custom-cont-init.d/00-woc-identity
|
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 覆盖数据卷旧副本(否则旧实例升级后用不上新逻辑)
|
# 启动钩子(01):每次启动用镜像内最新 autostart 覆盖数据卷旧副本(否则旧实例升级后用不上新逻辑)
|
||||||
COPY woc-update-autostart /custom-cont-init.d/01-woc-autostart
|
COPY woc-update-autostart /custom-cont-init.d/01-woc-autostart
|
||||||
|
|||||||
Reference in New Issue
Block a user