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

Use chown(8) only once #1263

Merged
merged 3 commits into from
Dec 4, 2020
Merged

Use chown(8) only once #1263

merged 3 commits into from
Dec 4, 2020

Conversation

osokin
Copy link
Contributor

@osokin osokin commented Dec 3, 2020

It's possible to pass multiple files to chown utility, so run it
only once to make changes.

Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue here in this description (not in the title of the PR).

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

It's possible to pass multiple files to chown utility, so run it
only once to make changes.
@netlify
Copy link

netlify bot commented Dec 3, 2020

Deploy request for nginx-kubernetes-ingress rejected.

Rejected with commit 03e3e27

https://docs.netlify.com/configure-builds/environment-variables/#sensitive-variable-policy

&& chown -R nginx:0 /var/log/app_protect/ \
&& chown -R nginx:0 /opt/app_protect/ \
&& chown -R nginx:0 /var/log/nginx/ \
/etc/nginx \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the order of folders here is a bit different from the file build/appprotect/DockerfileWithAppProtectForPlus.
Could we use the same order for consistency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pleshakov I've sorted that out cause in that order it has better readility, however I can revert that one.

Copy link
Member

@lucacome lucacome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, but could you repace spaces with tabs so it's consistent with the rest of the file?

Requested by:	lucacome
@lucacome lucacome changed the title Use chown(8) only once. Use chown(8) only once Dec 4, 2020
@lucacome lucacome merged commit 1b5c730 into nginxinc:master Dec 4, 2020
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

Successfully merging this pull request may close these issues.

3 participants