diff --git a/scripts/install b/scripts/install index a0e0438..33de61e 100644 --- a/scripts/install +++ b/scripts/install @@ -52,8 +52,8 @@ ynh_script_progression --message="Installing The Lounge..." --weight=10 pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack enable - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack prepare yarn@stable --activate + ynh_exec_warn_less corepack enable + ynh_exec_warn_less corepack prepare yarn@stable --activate ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build popd