summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-03-12 08:27:00 +0100
committerGitHub <noreply@github.com>2022-03-12 08:27:00 +0100
commit1e17d1d45a0952bab53af46d6c4dfe15ebb1110e (patch)
treee7fa2ca22a16cc2ffe2dda2931494667af985e75 /data/templates
parent2d3f5a03de3ebfd381582e36801c7e63d2493c71 (diff)
parentebb524702e1cd60a74b00727b7bd24d375648c78 (diff)
downloadvyos-1x-1e17d1d45a0952bab53af46d6c4dfe15ebb1110e.tar.gz
vyos-1x-1e17d1d45a0952bab53af46d6c4dfe15ebb1110e.zip
Merge pull request #1241 from zdc/T4250-sagitta
logrotate: T4250: Fixed logrotate config generation
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/syslog/logrotate.tmpl9
1 files changed, 4 insertions, 5 deletions
diff --git a/data/templates/syslog/logrotate.tmpl b/data/templates/syslog/logrotate.tmpl
index f758265e4..c1b951e8b 100644
--- a/data/templates/syslog/logrotate.tmpl
+++ b/data/templates/syslog/logrotate.tmpl
@@ -1,12 +1,11 @@
-{% for file in files %}
-{{files[file]['log-file']}} {
+{{ config_render['log-file'] }} {
missingok
notifempty
create
- rotate {{files[file]['max-files']}}
- size={{files[file]['max-size']//1024}}k
+ rotate {{ config_render['max-files'] }}
+ size={{ config_render['max-size'] // 1024 }}k
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
-{% endfor %}
+