From a0f108a083b80a2943a4eff5f6b643e92ae7df84 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 16 Nov 2020 18:38:41 +0100 Subject: [PATCH] Revert "Fix" This reverts commit 839c811f5dc64d481ff96ee2a7cf3f5206d64b46. --- conf/lstu-minion@.service | 2 +- conf/systemd.service | 2 +- scripts/upgrade | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/conf/lstu-minion@.service b/conf/lstu-minion@.service index 44ffa4e..7363924 100644 --- a/conf/lstu-minion@.service +++ b/conf/lstu-minion@.service @@ -4,7 +4,7 @@ Documentation=https://framagit.org/luc/lstu [Service] Type=forking -User=__APP__ +User=www-data WorkingDirectory=__FINALPATH__ ExecStart=/usr/bin/carton exec script/application minion worker diff --git a/conf/systemd.service b/conf/systemd.service index 205089d..b499d7f 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=network.target [Service] Type=forking -User=__APP__ +User=www-data Restart=always RestartSec=10 WorkingDirectory=__FINALPATH__ diff --git a/scripts/upgrade b/scripts/upgrade index 9dc805c..b197681 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,13 +202,6 @@ 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 #=================================================