Kaynağa Gözat

fix: 修复日志权限问题

大侠咬超人 1 hafta önce
ebeveyn
işleme
1962b8bd1f
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      docker-entrypoint.sh

+ 6 - 0
docker-entrypoint.sh

@@ -1,6 +1,12 @@
 #!/bin/sh
 set -e
 
+# 修复 storage 目录权限(挂载卷可能覆盖权限)
+if [ -d /app/storage ]; then
+    chmod -R 777 /app/storage 2>/dev/null || true
+    chmod -R 777 /app/bootstrap/cache 2>/dev/null || true
+fi
+
 # 启动 dbus 守护进程(Chrome 需要)
 if [ -x /usr/bin/dbus-daemon ]; then
     mkdir -p /run/dbus