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 #=================================================