From b1bca21c4e80d649a691477ba0dac3ff138d6944 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Jun 2021 22:38:45 +0200 Subject: [PATCH] Update install --- scripts/install | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 9abee92..617c443 100644 --- a/scripts/install +++ b/scripts/install @@ -120,9 +120,12 @@ ynh_add_nginx_config #============================================== ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=240 -pushd "$final_path" - ynh_npm install -popd +chown -R $app: $final_path + +pushd $final_path || ynh_die + ynh_use_nodejs + ynh_exec_as $app env $ynh_node_load_PATH npm install +popd || ynh_die #================================================= # SETUP SYSTEMD