diff --git a/roles/koji_hub/files/koji-directory-cleanup b/roles/koji_hub/files/koji-directory-cleanup index 0d53299452..1ff503b5e9 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