YunoHost / issues

General issue tracker for the YunoHost project
71 stars 7 forks source link

Composer helper : allow run as other user #2367

Open Salamandar opened 3 months ago

Salamandar commented 3 months ago

Describe the bug

# ynh_composer_exec
[...]
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Aborting as no plugin should be loaded if running as super user is not explicitly allowed

# ynh_exec_as "$app" ynh_composer_exec
sudo: ynh_composer_exec: command not found
tituspijean commented 3 months ago

I think I had at some point coded an alternative composer helper for Flarum with that fearure. We could reuse that.

OniriCorpe commented 3 months ago

maybe run it as $app by default or mandatory?