From 69630e37ed73df22e9336944d8397653c39bba0b Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 1 Sep 2024 15:39:22 +0200 Subject: [PATCH] fix logrotate --- scripts/install | 3 +++ scripts/restore | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index e1b7f74..bcd52ee 100755 --- a/scripts/install +++ b/scripts/install @@ -23,6 +23,9 @@ ynh_script_progression "Configuring logrotate to manage application logfiles" # Use logrotate to manage application logfile(s) ynh_config_add_logrotate +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE diff --git a/scripts/restore b/scripts/restore index 835cca0..5d85694 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,6 +15,9 @@ ynh_script_progression "Configuring logrotate to manage application logfiles" # Use logrotate to manage application logfile(s) ynh_config_add_logrotate +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ #================================================= # RESTORE THE NGINX CONFIGURATION