diff options
| author | Dennis Gilmore <ausil@fedoraproject.org> | 2017-01-17 16:32:56 +0000 |
|---|---|---|
| committer | Dennis Gilmore <ausil@fedoraproject.org> | 2017-01-17 16:33:57 +0000 |
| commit | 985943319ad2ed5d524086dbc9de72fae1007313 (patch) | |
| tree | fa22c3d74d92bcfba5d5a7ac232228c3a3d97479 /roles | |
| parent | 954753b76582210fbbbad0ffa3409894bf3a90dd (diff) | |
| download | ansible-985943319ad2ed5d524086dbc9de72fae1007313.tar.gz ansible-985943319ad2ed5d524086dbc9de72fae1007313.tar.xz ansible-985943319ad2ed5d524086dbc9de72fae1007313.zip | |
clean up koschei logs after 7 days and the rpms after 1 day
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/koji_hub/files/koji-directory-cleanup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/koji_hub/files/koji-directory-cleanup b/roles/koji_hub/files/koji-directory-cleanup index 0d5329945..1ff503b5e 100644 --- a/roles/koji_hub/files/koji-directory-cleanup +++ b/roles/koji_hub/files/koji-directory-cleanup @@ -1,3 +1,4 @@ 0 8 * * * apache find /mnt/koji/work -xdev -depth -mindepth 2 -mtime +14 \( -type f -o -type l \) -delete -o -type d -empty -delete >& /dev/null 0 9 * * * apache find /mnt/koji/scratch -xdev -depth -mtime +14 \( -type f -o -type l -o -not -path "./koschei" \) -delete -o -type d -empty -delete >& /dev/null -0 15 * * * apache find /mnt/koji/scratch/koschei -xdev -depth -mtime +1 \( -type f -o -type l \) -delete -o -type d -empty -delete >& /dev/null +0 15 * * * apache find /mnt/koji/scratch/koschei -xdev -depth -mtime +7 \( -type f -o -type l \) -delete -o -type d -empty -delete >& /dev/null +0 45 * * * apache find /mnt/koji/scratch/koschei -xdev -depth -mtime +1 -name "*.rpm" -delete >& /dev/null |
