From bc6b43c43c92cdbd5d7b62b1d39b23a110ffb3da Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 4 May 2022 15:38:58 +0200 Subject: [PATCH] feat: rotate logs using libretime user --- legacy/install/logrotate/libretime-legacy.conf | 2 +- playout/install/logrotate/libretime-liquidsoap.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/install/logrotate/libretime-legacy.conf b/legacy/install/logrotate/libretime-legacy.conf index 002467baa..5b23f51b9 100644 --- a/legacy/install/logrotate/libretime-legacy.conf +++ b/legacy/install/logrotate/libretime-legacy.conf @@ -1,4 +1,5 @@ /var/log/libretime/legacy.log { + su www-data www-data compress rotate 10 size 1000k @@ -6,6 +7,5 @@ notifempty sharedscripts postrotate - chown www-data:www-data /var/log/airtime/ endscript } diff --git a/playout/install/logrotate/libretime-liquidsoap.conf b/playout/install/logrotate/libretime-liquidsoap.conf index 3e3f75f3e..ad807b5d3 100644 --- a/playout/install/logrotate/libretime-liquidsoap.conf +++ b/playout/install/logrotate/libretime-liquidsoap.conf @@ -1,4 +1,5 @@ /var/log/libretime/liquidsoap.log { + su www-data www-data compress rotate 10 size 1000k