mirror of
https://github.com/YunoHost-Apps/uptime-kuma_ynh.git
synced 2024-10-01 13:34:58 +02:00
run npm install as app user in upgrade and restore scripts
This commit is contained in:
parent
0a55518f40
commit
8a23f867c8
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ ynh_use_nodejs
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=7
|
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
|
# RESTORE VARIOUS FILES
|
||||||
|
|
|
@ -99,7 +99,7 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7
|
ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7
|
||||||
|
|
||||||
pushd "$final_path"
|
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
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue