From c4f93c1b2f4ccb929b016e22c8fe18fdf3f1bd35 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 16 Nov 2020 17:00:53 +0100 Subject: [PATCH] Small fixes --- conf/systemd.service | 2 +- scripts/upgrade | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index b499d7f..205089d 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=network.target [Service] Type=forking -User=www-data +User=__APP__ Restart=always RestartSec=10 WorkingDirectory=__FINALPATH__ diff --git a/scripts/upgrade b/scripts/upgrade index b197681..9dc805c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,6 +202,13 @@ ynh_script_progression --message="Upgrading logrotate configuration..." # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." + +yunohost service add $app --log "/var/log/$app.log" --log "/var/www/$app/log/production.log" + #================================================= # SETUP SYSTEMD #=================================================