From 5614050f2153ee2c1e3a365283e6aa72e75c4389 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Jun 2021 23:51:06 +0200 Subject: [PATCH] Update install --- scripts/install | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 5a61517..2789276 100644 --- a/scripts/install +++ b/scripts/install @@ -120,13 +120,11 @@ ynh_add_nginx_config #============================================== ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=240 -chown -R $app: $final_path - -pushd $final_path || ynh_die +pushd $final_path ynh_use_nodejs - ynh_exec_as $app env $ynh_node_load_PATH npm install -g inherits - ynh_exec_as $app env $ynh_node_load_PATH npm install -popd || ynh_die + npm install -g inherits + npm install +popd #================================================= # SETUP SYSTEMD