From b42f9e4a8ba37c57d98ccb768f479d219866c630 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Feb 2019 22:39:20 +0100 Subject: [PATCH] remove nodejs_use_version references... deprecated --- scripts/install | 1 - scripts/upgrade | 4 ---- 2 files changed, 5 deletions(-) diff --git a/scripts/install b/scripts/install index 9b804b2..d170248 100755 --- a/scripts/install +++ b/scripts/install @@ -187,7 +187,6 @@ popd # Create a dedicated systemd config ynh_print_info "Adding wekan systemd service ..." -ynh_replace_string "__NODEJS__" "$nodejs_use_version" "../conf/systemd.service" ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" ynh_replace_string "__URI__" "$path_url" "../conf/systemd.service" diff --git a/scripts/upgrade b/scripts/upgrade index 679c233..bee0fb8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,7 +67,6 @@ fi if ynh_version_gt "0.77-2" "${previous_version}" ; then ynh_install_nodejs 8.9.3 # Create a dedicated systemd config - ynh_replace_string "__NODEJS__" "$nodejs_use_version" "../conf/systemd.service" ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" ynh_replace_string "__URI__" "$path_url/" "../conf/systemd.service" @@ -87,9 +86,6 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then yunohost service add mongodb --log "/var/log/mongodb/mongodb.log" # Gotta regen the systemd config because mongodb service name changed - nodejs_version=$(ynh_app_setting_get $app nodejs_version) - nodejs_use_version="$n_install_dir/bin/n -q $nodejs_version" - ynh_replace_string "__NODEJS__" "$nodejs_use_version" "../conf/systemd.service" ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" ynh_replace_string "__URI__" "$path_url/" "../conf/systemd.service"