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)
This commit is contained in:
Keigo Noha 2019-07-17 12:16:57 +09:00 committed by Cédric Jeanneret
parent 547b1aa156
commit 88ec714697
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,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}