From 183f8a6b9dccaa12117c9306c77f3dc1d16025e6 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Fri, 7 Dec 2018 11:08:41 +0100 Subject: [PATCH] Update install 1. Change "service management" to be consistent with 'restore' script. See https://github.com/YunoHost/example_ynh/blob/master/scripts/restore#L99 2. Add a comment about the possibility of adding a description since Yunohost 3.2 (optional and can be removed as it is cherry on top of the cake feature and could be confusing) --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 4ebf73b..d0fff64 100755 --- a/scripts/install +++ b/scripts/install @@ -274,7 +274,9 @@ ynh_use_logrotate ### - Remove the section "REMOVE SERVICE FROM ADMIN PANEL" in the remove script ### - As well as the section ADVERTISE SERVICE IN ADMIN PANEL" in the restore script -yunohost service add NAME_INIT.D --log "/var/log/FILE.log" +yunohost service add $app --log "/var/log/$app/APP.log" +# if using yunohost version 3.2 or more in the 'manifest.json', a description can be added +#yunohost service add $app --description "$app daemon for XXX" --log "/var/log/$app/APP.log" #================================================= # SETUP SSOWAT