From b0b47eacd03854315842cd44876a6ef359a1a14f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 8 Mar 2019 01:41:31 +0100 Subject: [PATCH] reorder --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4f48cfa..b7ac660 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,12 +87,12 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then ynh_install_app_dependencies "mongodb mongodb-server" yunohost service remove mongod yunohost service add mongodb --log "/var/log/mongodb/mongodb.log" - ynh_use_nodejs # Gotta regen the systemd config because mongodb service name changed + ynh_use_nodejs ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service" ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service" - ynh_replace_string "__DOMAIN_URI__" "$domain$path_url" "../conf/systemd.service" + ynh_replace_string "__DOMAIN_URI__" "$domain$path_url" "../conf/systemd.service" ynh_replace_string "__PORT__" "$port" "../conf/systemd.service" ynh_add_systemd_config fi