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
This commit is contained in:
Keigo Noha 2019-07-17 12:16:57 +09:00
parent 2b05e90cea
commit a0b9f90a2e
1 changed files with 1 additions and 1 deletions

View File

@ -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}