From aa0a57c39211185deae842957d25551f9afffa10 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 24 Dec 2020 20:09:32 +0100 Subject: [PATCH] Found some inconsistencies in the 'yunohost service add' commands between install, upgrade and restore: --- scripts/install | 1 - scripts/upgrade | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 15248aa..af00f9f 100644 --- a/scripts/install +++ b/scripts/install @@ -153,7 +153,6 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750 ynh_script_progression --message="Integrating service in YunoHost..." yunohost service add $app --description "Wekan daemon" -yunohost service add $mongodb_servicename --description "MongoDB daemon" --log "/var/log/mongodb/mongodb.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index 4765c35..b59fd6c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -91,7 +91,6 @@ fi if ynh_version_gt "0.45-3" "${previous_version}" ; then ynh_script_progression --message="Upgrading to 0.45-3..." - yunohost service add $app --description "Wekan daemon" fi if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then @@ -102,7 +101,6 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then rm -f /etc/apt/sources.list.d/mongodb-org-3.2.list ynh_remove_app_dependencies ynh_install_app_dependencies "mongodb mongodb-server" - yunohost service add $app --description "Wekan daemon" fi if ynh_version_gt "2.56~ynh1" "${previous_version}" ; then @@ -212,6 +210,13 @@ chown -R $app: "$final_path" chmod -R 640 "$final_path" find "$final_path" -type d -print0 | xargs -0 chmod 750 +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." + +yunohost service add $app --description "Wekan daemon" + #================================================= # START SYSTEMD SERVICE #=================================================