From cf54575187f1c8ec9ec335daeffe53fda66cb61d Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 2 Jun 2026 16:24:48 +0100 Subject: [PATCH] restricts ownership changes to files still owned by root (e.g., from the image build). On subsequent restarts, files already owned by www-data are skipped entirely, avoiding a full recursive write cycle. --- entrypoint.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 13db3cc..6548983 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -54,7 +54,7 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then EOF fi -chown -R www-data:www-data /var/www/html/wp-content/ +chown -R --from=root:root www-data:www-data /var/www/html/wp-content/ if [ -n "$@" ]; then "$@"