blob: de41f7e520762602b2877df207931a278df696bc (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
# Ensure the uploads directory exists and is writable by www-data (PHP-FPM).
# Bind-mounted volumes keep host ownership, so we fix permissions at startup.
mkdir -p /var/www/html/uploads/posts
chown -R www-data:www-data /var/www/html/uploads
exec "$@"
|