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 a7c7120d8a
commit b8944e2341

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
# 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
chown -R www:www /www 2>/dev/null || true
exec "$@"