From de7d799257121b7f88a450f9afaddb0ec47d9898 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Mon, 21 Nov 2016 14:05:04 +0100 Subject: [PATCH] Use file where koschei has permission --- roles/koschei/backend/templates/cron-db-cleanup.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/koschei/backend/templates/cron-db-cleanup.j2 b/roles/koschei/backend/templates/cron-db-cleanup.j2 index 2ff33b8f01..f6bc204c37 100644 --- a/roles/koschei/backend/templates/cron-db-cleanup.j2 +++ b/roles/koschei/backend/templates/cron-db-cleanup.j2 @@ -1,4 +1,4 @@ SHELL=/bin/bash MAILTO=sysadmin-koschei-members@fedoraproject.org 0 3 * * * koschei koschei-admin cleanup --older-than 6 >/dev/null -*/5 * * * * koschei koschei-admin psql <<< 'VACUUM FULL ANALYZE VERBOSE package' 2>&1 | awk '/DETAIL/{print$2}' > /var/log/vaccum.log +*/5 * * * * koschei koschei-admin psql <<< 'VACUUM FULL ANALYZE VERBOSE package' 2>&1 | awk -v "date=$(date)" '/DETAIL/{print date ": " $2}' >> /var/cache/koschei/vaccum.log