Hi,

per request:
18:12 < nirik> tflink: can you make this cron job not send emails: Subject: 
Cron <root@taskotron-stg01> wget -O 
               /var/lib/taskotron-trigger/critpath_whitelist 
https://admin.fedoraproject.org/pkgdb/api/critpath?format=json && chown 
fedmsg:fedmsg 
               /var/lib/taskotron-trigger/critpath_whitelist

Patch follows:

commit f8852ed89ce6d2dd1c0ab585c3e54c3853378be2
Author: Martin Krizek <mkri...@redhat.com>
Date:   Wed Jun 1 17:50:22 2016 +0000

    Make critpath download cronjob silent

diff --git a/roles/taskotron/taskotron-trigger/tasks/main.yml 
b/roles/taskotron/taskotron-trigger/tasks/main.yml
index 04d81ba..7cf40f0 100644
--- a/roles/taskotron/taskotron-trigger/tasks/main.yml
+++ b/roles/taskotron/taskotron-trigger/tasks/main.yml
@@ -47,7 +47,7 @@
   cron:
     name="download crithpath list"
     special_time=daily
-    job="wget -O {{ trigger_critpath_file }} {{ trigger_critpath_url }} && 
chown fedmsg:fedmsg {{ trigger_critpath_file }}"
+    job="{ wget -O {{ trigger_critpath_file }} {{ trigger_critpath_url }}; 
chown fedmsg:fedmsg {{ trigger_critpath_file }}; } >& /dev/null"
 
 - name: copy tmpfiles.d for trigger distgit cache
   template: src=tmpfiles.d.trigger.conf.j2 dest=/etc/tmpfiles.d/trigger.conf 
owner=root group=root mode=0644

+1?

Thanks,
Martin
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org

Reply via email to