#!/bin/sh
set -e

# Fix permissions for Laravel writable dirs (runs as root before switching)
chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache 2>/dev/null || true

exec "$@"
