-
Notifications
You must be signed in to change notification settings - Fork 41
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
User installs should be able to overwrite tool symlinks created by root installs #338
Comments
The problem is not the symlink, but rather the shell wrapper.
The shell wrapper on the other hand is basically just a shell script and needs proper permissions. |
Ok, so it seems we should always use shell wrapper scripts to not need change the target files. |
So no symlinks then? |
what about writing the shell wrapper as root only on prepare stage, and write the tool version to call to That way we won't need to make @rarkins WDYT? This would be again a major change and propably would allow us to solve #101 |
So you would write all shell wrappers during the prepare phase? The prepare phase for me is that a tool that is installed as root can prepare runtime installation of this tools as well if possible which does not need root rights. Is the prepare phase for you something that will be called during creation of the docker image for all tools instead? |
Yes, it's called on image build time for each tool seperate or all. So for language images we only like to prepare those, but on full image we like to prepare all. something like this? > prepare-tool all
> prepare-tool node
> prepare-tool node,python |
As long as |
When a root installs a tools the symlink in
/usr/local/bin
will have the mode755
set.This prevents user installs to overwrite symlinks when a user installs a tool.
We should change this to be
775
on created symlinks,The text was updated successfully, but these errors were encountered: