From d5c6261967965f02f006e8017d54536e3f59eb00 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Jul 2019 19:57:31 +0200 Subject: [PATCH] Fix nodejs --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index ab76e9e..af4b4e6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -80,6 +80,8 @@ fi if ynh_version_gt "0.77-2" "${previous_version}" ; then ynh_install_nodejs --nodejs_version="8.9.3" + ynh_use_nodejs + # Create a dedicated systemd config ynh_replace_string --match_string="__NODEJS__" --replace_string="$nodejs_use_version" --target_file="../conf/systemd.service" ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" @@ -191,6 +193,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" ynh_print_info --message="Upgrading systemd configuration..." # 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 #=================================================