From f1f1088fb85018a6654a79bb8b76bd39157e77d8 Mon Sep 17 00:00:00 2001 From: Pedro Moura Date: Tue, 28 Jun 2022 16:12:21 -0300 Subject: [PATCH] monthly cron job to clean up old koji trees Signed-off-by: Pedro Moura --- roles/grobisplitter/files/cents8-split.cron | 1 + roles/grobisplitter/files/rhel8-split.cron | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/grobisplitter/files/cents8-split.cron b/roles/grobisplitter/files/cents8-split.cron index 78f08bf449..669791d37c 100644 --- a/roles/grobisplitter/files/cents8-split.cron +++ b/roles/grobisplitter/files/cents8-split.cron @@ -1 +1,2 @@ 10 10 * * * root /usr/local/bin/cents8-split.sh +0 0 1 * * root /usr/bin/find /mnt/fedora/app/fi-repo/centos/stream8-kojitarget -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec rm -rf '{}' \; diff --git a/roles/grobisplitter/files/rhel8-split.cron b/roles/grobisplitter/files/rhel8-split.cron index 4472f0c7cc..d0d1afbfe9 100644 --- a/roles/grobisplitter/files/rhel8-split.cron +++ b/roles/grobisplitter/files/rhel8-split.cron @@ -1 +1,2 @@ 10 09 * * * root /usr/local/bin/rhel8-split.sh +0 0 1 * * root /usr/bin/find /mnt/fedora/app/fi-repo/rhel/rhel8/koji/ -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec rm -rf '{}' \;