Fix periodic log cleanup
'*.log' does not match filename postfixed with date, as most of them are, e.g. dib.devstack-fedora21-dib.log.2016-01-11_14. Add an additional filter to match that case. The cleanup was added in Iee55717bc5fbf88d739a4124f62f76d193cf3b75. Change-Id: I2a796ee1e9a9cb7f7ea83312227311c9515f09d1
This commit is contained in:
parent
923778ff19
commit
3505c90fa5
|
@ -311,7 +311,7 @@ class nodepool (
|
|||
user => 'nodepool',
|
||||
hour => '1',
|
||||
minute => '0',
|
||||
command => "find ${image_log_document_root} -name '*.log' -mtime +7 -execdir rm {} \\;",
|
||||
command => "find ${image_log_document_root} \( -name '*.log' -o -name '*.log.*' \) -mtime +7 -execdir rm {} \\;",
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue