Add cron job for deleting repo archives

This commit is contained in:
Basti 2022-04-11 12:31:00 +02:00
parent 5617591e1c
commit 8f4d11b317
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
1 changed files with 7 additions and 0 deletions

View File

@ -124,3 +124,10 @@ firewall_rule 'gitea' do
protocol :tcp
command :allow
end
# Hack-fix until we can disable auto-generation of archives
# TODO https://gitea.kosmos.org/kosmos/chef/issues/395
cron 'delete auto-generated repo file archives' do
minute '*/15'
command 'rm -rf /var/lib/gitea/data/repo-archive/* >/dev/null 2>&1'
end