From 153c51bd25060946063fc93ddc3c7d0db5485380 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 24 Oct 2021 00:27:23 +0200 Subject: [PATCH] Set HOME for npm commands in upgrade script --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e2f6f56..b32baee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -139,10 +139,10 @@ chown -R $app: $final_path ynh_use_nodejs pushd $final_path/src - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install node-gyp - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install argon2-cli - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error audit fix --force + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME=$final_path $ynh_npm --loglevel=error install node-gyp + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME=$final_path $ynh_npm --loglevel=error install argon2-cli + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME=$final_path $ynh_npm --loglevel=error install + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME=$final_path $ynh_npm --loglevel=error audit fix --force popd #=================================================