Browse Source

Add a suffix for tmpwatch

Change 641608 introduces tmpwatch into logrotate-crond container.
However, LogrotatePurgeAfterDays parameter is parsed in hours because
there is no suffix to the value. This commit adds a suffix, 'd' to the
value.

Closes-Bug: #1836848
Change-Id: I5e2c92a60f73b75a144228fd13ac31fff990a038
(cherry picked from commit a0b9f90a2e)
(cherry picked from commit 76356dc4f2)
(cherry picked from commit 88ec714697)
tags/8.4.1
Keigo Noha 2 months ago
parent
commit
81e81932c9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      docker/services/logrotate-crond.yaml

+ 1
- 1
docker/services/logrotate-crond.yaml View File

@@ -89,7 +89,7 @@ outputs:
89 89
                 -X "/var/log/containers/*/*log" \
90 90
                 -X "/var/log/containers/*/*/*log" \
91 91
                 -X "/var/log/containers/*/*err" \
92
-                {{ LogrotatePurgeAfterDays|int +1 }} \
92
+                {{ LogrotatePurgeAfterDays|int +1 }}d \
93 93
                 /var/log/containers/ 2>&1 | logger -t container-tmpwatch
94 94
           vars:
95 95
              LogrotatePurgeAfterDays: {get_param: LogrotatePurgeAfterDays}

Loading…
Cancel
Save