From 67437ba64dcbc4a5e0261b4b92311f67d357c08f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 4 Jun 2020 16:52:38 +0200 Subject: [PATCH] Adding service integration step during upgrade --- scripts/install | 1 + scripts/upgrade | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 0a52780..d70aa7d 100755 --- a/scripts/install +++ b/scripts/install @@ -299,6 +299,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." --time --w ### - You can remove these files in conf/. ### - Remove the section "REMOVE SERVICE INTEGRATION IN YUNOHOST" in the remove script ### - As well as the section "INTEGRATE SERVICE IN YUNOHOST" in the restore script +### - And the section "INTEGRATE SERVICE IN YUNOHOST" in the upgrade script yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log" diff --git a/scripts/upgrade b/scripts/upgrade index e7de87b..59204f6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -204,6 +204,13 @@ then ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" fi +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." --time --weight=1 + +yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log" + #================================================= # START SYSTEMD SERVICE #=================================================