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