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
)
This commit is contained in:
parent
2871ce0fa9
commit
76356dc4f2
|
@ -91,7 +91,7 @@ outputs:
|
|||
-X "/var/log/containers/*/*log" \
|
||||
-X "/var/log/containers/*/*/*log" \
|
||||
-X "/var/log/containers/*/*err" \
|
||||
{{ LogrotatePurgeAfterDays|int +1 }} \
|
||||
{{ LogrotatePurgeAfterDays|int +1 }}d \
|
||||
/var/log/containers/ 2>&1 | logger -t container-tmpwatch
|
||||
vars:
|
||||
LogrotatePurgeAfterDays: {get_param: LogrotatePurgeAfterDays}
|
||||
|
|
Loading…
Reference in New Issue