From 9750df2a85698e0c8e8d3fa4d04dbe8b4a085e5b Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Tue, 10 Sep 2024 15:05:14 +0100 Subject: [PATCH] manage logrotate --- .../logrotate/logrotate.conf.gotmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename unprocessed/logrotate/logrotate.conf => templates/logrotate/logrotate.conf.gotmpl (52%) diff --git a/unprocessed/logrotate/logrotate.conf b/templates/logrotate/logrotate.conf.gotmpl similarity index 52% rename from unprocessed/logrotate/logrotate.conf rename to templates/logrotate/logrotate.conf.gotmpl index 61967c2..89d39c0 100644 --- a/unprocessed/logrotate/logrotate.conf +++ b/templates/logrotate/logrotate.conf.gotmpl @@ -1,6 +1,6 @@ -${LOG_HOME}/*.log ${LOG_HOME}/nvim/*.log { +{{ env "LOG_HOME" | printf "%s/*.log" }} { rotate 3 - size 10M + size 3M nocompress notifempty copytruncate