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

Extensions loaded via mounted volume have incorrect permissions #4

Open
jortkoopmans opened this issue Feb 20, 2017 · 0 comments
Open

Comments

@jortkoopmans
Copy link

When mounting a volume for extensions, to /tmp/extensions/, the files are copied by start.sh with incorrect permissions, ending up being root owned in /usr/share/nginx/html/extensions/*.

I'm failry sure this is caused by the copy command being executed by root, not preserving the owner:

cp -r /tmp/extensions/* /usr/share/nginx/html/extensions/

My guess is that it would be solved by:

cp -rp /tmp/extensions/* /usr/share/nginx/html/extensions/

Temporary workaround: go into the container and fix the permissions on the extensions at /usr/share/nginx/html/extensions/

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