Sfoglia il codice sorgente

fix: 修复日志权限问题

大侠咬超人 1 settimana fa
parent
commit
1962b8bd1f
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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