1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

remove nodejs_use_version references... deprecated

This commit is contained in:
yalh76 2019-02-05 22:39:20 +01:00
parent 8c4e04cc5f
commit b42f9e4a8b
2 changed files with 0 additions and 5 deletions

View file

@ -187,7 +187,6 @@ popd
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_print_info "Adding wekan systemd service ..." 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 "__ENV_PATH__" "$PATH" "../conf/systemd.service"
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
ynh_replace_string "__URI__" "$path_url" "../conf/systemd.service" ynh_replace_string "__URI__" "$path_url" "../conf/systemd.service"

View file

@ -67,7 +67,6 @@ fi
if ynh_version_gt "0.77-2" "${previous_version}" ; then if ynh_version_gt "0.77-2" "${previous_version}" ; then
ynh_install_nodejs 8.9.3 ynh_install_nodejs 8.9.3
# Create a dedicated systemd config # 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 "__ENV_PATH__" "$PATH" "../conf/systemd.service"
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
ynh_replace_string "__URI__" "$path_url/" "../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" yunohost service add mongodb --log "/var/log/mongodb/mongodb.log"
# Gotta regen the systemd config because mongodb service name changed # 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 "__ENV_PATH__" "$PATH" "../conf/systemd.service"
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
ynh_replace_string "__URI__" "$path_url/" "../conf/systemd.service" ynh_replace_string "__URI__" "$path_url/" "../conf/systemd.service"