From cfd7fbd818ddceff92862d28536bddf4a94ff3d9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 6 Mar 2019 05:29:12 +0100 Subject: [PATCH] Nodejs upgrade from 8.9.3 to 8.15.1 --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 90daf64..a732f08 100755 --- a/scripts/install +++ b/scripts/install @@ -100,7 +100,7 @@ ynh_print_info "Installing dependencies..." ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script ynh_print_info "Installing nodejs ..." -ynh_install_nodejs 8.9.3 +ynh_install_nodejs 8.15.1 ynh_print_info "Installing mongodb dependencies ..." ynh_install_app_dependencies "mongodb mongodb-server" diff --git a/scripts/restore b/scripts/restore index 11c87b7..eeba563 100644 --- a/scripts/restore +++ b/scripts/restore @@ -85,7 +85,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750 ynh_print_info "Reinstalling dependencies..." # Define and install dependencies -ynh_install_nodejs 8.9.3 +ynh_install_nodejs 8.15.1 # Install mongodb ynh_install_app_dependencies "mongodb mongodb-server" diff --git a/scripts/upgrade b/scripts/upgrade index 4f48cfa..0a9990f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,8 +68,9 @@ if ynh_version_gt "0.45-3" "${previous_version}" ; then fi if ynh_version_gt "0.77-2" "${previous_version}" ; then - ynh_install_nodejs 8.9.3 - ynh_use_nodejs + ynh_remove_nodejs + ynh_install_nodejs 8.15.1 + ynh_use_nodejs # Create a dedicated systemd config ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"