From cd216399c711aeaa4bb988d5d2c6d8285bd8b6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 13 Dec 2023 09:18:45 +0100 Subject: [PATCH] Add logrotate --- scripts/install | 2 ++ scripts/restore | 2 ++ scripts/upgrade | 2 ++ 3 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 242a512..0e42d60 100755 --- a/scripts/install +++ b/scripts/install @@ -42,6 +42,8 @@ ynh_add_systemd_config yunohost service add "$app" --description=XWiki --log="/var/log/$app/$app.log" +ynh_use_logrotate --logfile "/var/log/$app" + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index a13ab2e..11ccb16 100755 --- a/scripts/restore +++ b/scripts/restore @@ -39,6 +39,8 @@ systemctl enable $app.service --quiet yunohost service add $app --description=XWiki --log="/var/log/$app/$app.log" +ynh_use_logrotate --logfile "/var/log/$app" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6de4d7c..92018eb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,6 +46,8 @@ ynh_add_systemd_config yunohost service add "$app" --description=XWiki --log="/var/log/$app/$app.log" +ynh_use_logrotate --logfile "/var/log/$app" + #================================================= # ADD A CONFIGURATION #=================================================