Freeze break: Make critpath download cronjob silent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <mkrizek@xxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux