aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/scheduler.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/scheduler.pp b/modules/buildsystem/manifests/scheduler.pp
index 47ac036e..9848f109 100644
--- a/modules/buildsystem/manifests/scheduler.pp
+++ b/modules/buildsystem/manifests/scheduler.pp
@@ -31,6 +31,14 @@ class buildsystem::scheduler {
age => $buildsystem::var::scheduler::clean_uploads_logs_age,
rmdirs => true,
}
+
+ cron { 'clean uploads logs':
+ user => $login,
+ # TEMPORARY to test what be deleted before replacing the above
+ command => sprintf("/usr/bin/find %s/uploads -xdev -type f -mtime +14 >/var/lib/schedbot/clean-uploads-logs-test.log", shellquote(${buildsystem::var::scheduler::homedir})),
+ hour => '*/4',
+ minute => '51',
+ }
}
if ($buildsystem::var::scheduler::clean_uploads_packages_age != '0') {
tidy { "${buildsystem::var::scheduler::homedir}/uploads/**/*.rpm":