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 #=================================================