From b0a9db465b5e2073489987a31814e9b3a16cdcc8 Mon Sep 17 00:00:00 2001 From: Yalh Date: Sat, 19 Jan 2019 05:07:11 +0100 Subject: [PATCH] Fix install --- scripts/install | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/install b/scripts/install index f4aac7f..5791a3b 100644 --- a/scripts/install +++ b/scripts/install @@ -103,6 +103,8 @@ fi # NGINX CONFIGURATION #================================================= +### `ynh_add_nginx_config` will use the file conf/nginx.conf + # Create a dedicated nginx config ynh_add_nginx_config @@ -186,6 +188,22 @@ cp -r ../sources "$final_path" # Set permissions to app files chown -R root: $final_path +#================================================= +# ADVERTISE SERVICE IN ADMIN PANEL +#================================================= + +### `yunohost service add` is a CLI yunohost command to add a service in the admin panel. +### You'll find the service in the 'services' section of YunoHost admin panel. +### This CLI command would be useless if the app does not have any services (systemd or sysvinit) +### If you're not using these lines: +### - You can remove these files in conf/. +### - 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 $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 #=================================================