fix(docker): re-apply www ownership to /www at entrypoint
This commit is contained in:
@@ -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 "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user