fix(docker): re-apply www ownership to /www at entrypoint

This commit is contained in:
xboard
2026-04-20 01:39:24 +08:00
parent 26210ed8d4
commit df77cbfb47
+1
View File
@@ -147,4 +147,5 @@ echo "[entrypoint] Starting services (caddy=${ENABLE_CADDY} web=${ENABLE_WEB} ho
# Drop stale Octane/WorkerMan state files so the new master does not signal # Drop stale Octane/WorkerMan state files so the new master does not signal
# PIDs left over from a previous container run (causes Swoole kill EPERM). # PIDs left over from a previous container run (causes Swoole kill EPERM).
rm -f /www/storage/logs/octane-server-state.json /www/storage/logs/xboard-ws-server.pid 2>/dev/null || true rm -f /www/storage/logs/octane-server-state.json /www/storage/logs/xboard-ws-server.pid 2>/dev/null || true
chown -R www:www /www 2>/dev/null || true
exec "$@" exec "$@"