From a8cf08cb3ba6a607f841472f59f2db9bbe08c533 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 23 Feb 2020 14:53:43 +0100 Subject: [PATCH] removing nodejs to upgrade it --- scripts/upgrade | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c4adafa..fb58336 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,12 +113,6 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then fi if ynh_version_gt "2.56~ynh1" "${previous_version}" ; then - ynh_use_nodejs - - # Create a dedicated systemd config - ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file="../conf/systemd.service" - ynh_add_systemd_config - # Create a dedicated .env config config_file="$final_path/.env" touch $config_file @@ -165,6 +159,7 @@ ynh_add_nginx_config #================================================= ynh_print_info --message="Upgrading dependencies..." +ynh_remove_nodejs ynh_install_nodejs --nodejs_version=$nodejsversion ynh_use_nodejs