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

helpers: run composer as the app user #1808

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

OniriCorpe
Copy link
Member

@OniriCorpe OniriCorpe commented Mar 25, 2024

The problem

YunoHost/issues#2367
we can't use ynh_exec_as "$app" ynh_composer_exec and composer cries about running as root

Solution

edit the ynh_composer_exec to run composer as the $app user
we can't choose the user but idk if that would be a good thing: an app has to stay in its own box

PR Status

yolodone

How to test

...

@Salamandar
Copy link
Contributor

Salamandar commented Mar 25, 2024

Yeah the issue is to not break every existing app... And some will break because file permissions are OK as root but nos as $app.

That's a bit of the idea I had with this PR: #1717 where we could do point-release of the helpers and packages could target versions of the helpers (thus helping retrocompatibility AND evolution of the helpers).

@alexAubin
Copy link
Member

In the meantime the simple solution sounds like just introducing a new option to the helper so that it's backward compatible etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants