Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to by bypass find filtering #3

Open
2 tasks
rsanzante opened this issue Sep 29, 2023 · 0 comments
Open
2 tasks

Add option to by bypass find filtering #3

rsanzante opened this issue Sep 29, 2023 · 0 comments

Comments

@rsanzante
Copy link
Member

The script checks every file and folder using find (

find "$1" $detected_vendor_path \( ! -user $drupal_user -o ! -group $httpd_group \) \( -type f -o -type d \) -print0 | xargs -r -0 -L20 chown $drupal_user:$httpd_group
).

This could be non-performant if all files and folders or most of them need fix.

A script flag/option can be added to skip this filtering.

Next steps

  • Test that there's really a performance penalty and measure it
  • Add the option of the penalty id big enough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant