From 8f20c7eb9298b1c3c2f9e037d96dc72bab40b224 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 25 Aug 2021 19:01:31 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index dce76da..dd8c7aa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,14 +18,12 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) @@ -122,8 +120,8 @@ then pushd "$final_path" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app npm install - ynh_exec_warn_less ynh_exec_as $app npm run build + ynh_exec_warn_less ynh_npm install + ynh_exec_warn_less ynh_npm run build popd fi