From 0a55518f4097cf1bcc584b8527ad3b953724da7b Mon Sep 17 00:00:00 2001 From: hidrarga Date: Fri, 8 Apr 2022 15:39:18 +0200 Subject: [PATCH 1/2] exec npm install as app user --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6bef4a4..7ec6dd2 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ ynh_add_nginx_config ynh_script_progression --message="Installing Uptime Kuma dependencies..." --weight=7 pushd "$final_path" - ynh_exec_warn_less $ynh_npm install + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install popd #================================================= From 8a23f867c8580b66230afcdb28d715cb7d804238 Mon Sep 17 00:00:00 2001 From: HgO Date: Sat, 9 Apr 2022 10:31:01 +0200 Subject: [PATCH 2/2] run npm install as app user in upgrade and restore scripts --- scripts/restore | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 06fd14c..428d3fc 100755 --- a/scripts/restore +++ b/scripts/restore @@ -82,7 +82,7 @@ ynh_use_nodejs #================================================= ynh_script_progression --message="Reinstalling dependencies..." --weight=7 -cd $final_path && ynh_exec_warn_less $ynh_npm install +cd $final_path && ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install #================================================= # RESTORE VARIOUS FILES diff --git a/scripts/upgrade b/scripts/upgrade index 3a81425..a2fb175 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,7 +99,7 @@ ynh_add_nginx_config ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7 pushd "$final_path" - ynh_exec_warn_less $ynh_npm install + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install popd #=================================================