diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 472395c..304efaf 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -52,9 +52,10 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then Require all denied EOF - chown www-data:www-data "$UPLOADS_HTACCESS" fi +chown -R www-data:www-data /var/www/html/wp-content/uploads/ + if [ -n "$@" ]; then "$@" fi