commit 8e28d152e9cea3333a48f905c39b271461a4da8d
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Dec 13 16:47:00 2017 +0100
fix directory size update on bodhi-backend01
roles/bodhi2/backend/tasks/main.yml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml
index 003b13f..b87ba0f 100644
--- a/roles/bodhi2/backend/tasks/main.yml
+++ b/roles/bodhi2/backend/tasks/main.yml
@@ -251,8 +251,8 @@
- cron
- name: directory sizes update cron job.
- cron: name="directory-sizes-update" minute="30" hour="23"
user="ftpsync"
- job="/usr/bin/find /pub/free/alt/ /pub/free/archive/
/pub/free/fedora-secondary/ /pub/free/fedora/ /pub/free/el/ /pub/nonfree/alt/
/pub/nonfree/archive/ /pub/nonfree/fedora-secondary/ /pub/nonfree/fedora/ /pub/nonfree/el/
-type d | grep -v snapshot | /usr/bin/xargs -n 1 /usr/bin/du --exclude=.snapshot -sh >
/tmp/DIRECTORY_SIZES.txt 2> /dev/null; cp /tmp/DIRECTORY_SIZES.txt /pub/"
+ cron: name="directory-sizes-update" minute="30" hour="23"
user="root"
+ job="/usr/bin/find /pub/free/alt/ /pub/free/archive/
/pub/free/fedora-secondary/ /pub/free/fedora/ /pub/free/el/ /pub/nonfree/alt/
/pub/nonfree/archive/ /pub/nonfree/fedora-secondary/ /pub/nonfree/fedora/ /pub/nonfree/el/
-type d | grep -v snapshot | /usr/bin/xargs -n 1 /usr/bin/du --exclude=.snapshot -sh >
/tmp/DIRECTORY_SIZES.txt 2> /dev/null; cp /tmp/DIRECTORY_SIZES.txt /pub/ ; chown
root:sysadmin-build /pub/DIRECTORY_SIZES.txt ; chmod 644 /pub/DIRECTORY_SIZES.txt"
cron_file=directory-sizes-update
when: inventory_hostname.startswith('bodhi-backend01') and env ==
"production"
tags:
Show replies by date