From d2c180ba13f9e2af0b8884c9e91f91c024b7445a Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 11 Sep 2020 15:42:03 +0200 Subject: [PATCH] [fix] propagate mongodb service name in yunohost --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 1d80f3f..5241f78 100755 --- a/scripts/install +++ b/scripts/install @@ -178,7 +178,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750 ynh_print_info --message="Integrating service in YunoHost..." yunohost service add $app --description "Wekan daemon" -yunohost service add mongodb --description "MongoDB daemon" --log "/var/log/mongodb/mongodb.log" +yunohost service add $mongodb_servicename --description "MongoDB daemon" --log "/var/log/mongodb/mongodb.log" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 957c1c5..1f5a2f2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -108,7 +108,7 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then ynh_remove_app_dependencies ynh_install_app_dependencies "mongodb mongodb-server" yunohost service remove mongod - yunohost service add mongodb --log "/var/log/mongodb/mongodb.log" + yunohost service add $mongodb_servicename --log "/var/log/mongodb/mongodb.log" fi if ynh_version_gt "2.56~ynh1" "${previous_version}" ; then