diff --git a/scripts/install b/scripts/install index ca24b3b..8cc74e1 100755 --- a/scripts/install +++ b/scripts/install @@ -165,10 +165,10 @@ ynh_config_add_logrotate pushd $install_dir ynh_use_nodejs - ynh_exec sudo -u $app env $ynh_node_load_PATH yarn install - ynh_exec sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend generate - ynh_exec sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend migrate - ynh_exec sudo -u $app env $ynh_node_load_PATH yarn build + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH workspace @chibisafe/backend generate + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH workspace @chibisafe/backend migrate + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build popd # Installation with curl