From 8a23f867c8580b66230afcdb28d715cb7d804238 Mon Sep 17 00:00:00 2001 From: HgO Date: Sat, 9 Apr 2022 10:31:01 +0200 Subject: [PATCH] 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 #=================================================