forked from coop-cloud/wordpress
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.
This commit is contained in:
@ -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
|
||||
"$@"
|
||||
|
||||
Reference in New Issue
Block a user