Added xtra chown to ensure correct perms on every container start #57

Merged
moritz merged 2 commits from kawaiipunk/wordpress:main into main 2026-05-26 17:10:06 +00:00

View File

@ -52,9 +52,10 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then
Require all denied
</FilesMatch>
EOF
chown www-data:www-data "$UPLOADS_HTACCESS"
fi
kawaiipunk marked this conversation as resolved
Review

Maybe this line can be deleted, because it's redundant with chown -R on /var/www/html/wp-content/uploads/

Maybe this line can be deleted, because it's redundant with `chown -R` on `/var/www/html/wp-content/uploads/`
Review

You're right! Just done that.

You're right! Just done that.
chown -R www-data:www-data /var/www/html/wp-content/uploads/
if [ -n "$@" ]; then
"$@"
fi