]> git.openstreetmap.org Git - chef.git/commitdiff
Ignore warning messages from civicrm cron job
authorTom Hughes <tom@compton.nu>
Tue, 26 Jun 2018 07:37:58 +0000 (08:37 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Jun 2018 07:37:58 +0000 (08:37 +0100)
cookbooks/civicrm/templates/default/cron.erb

index ea5aebe1ae1972ed00a54ad44301b7321a681bb8..22c363169bba5d583853308ec2fca317b1947e0e 100644 (file)
@@ -2,4 +2,4 @@
 
 MAILTO=admins@openstreetmap.org
 
-*/15 * * * * www-data php <%= @directory %>/civicrm/bin/cli.php -s join.osmfoundation.org -u batch -p "<%= @passwords["batch"] %>" -e Job -a execute
+*/15 * * * * www-data php <%= @directory %>/civicrm/bin/cli.php -s join.osmfoundation.org -u batch -p "<%= @passwords["batch"] %>" -e Job -a execute 2>&1 | egrep -v '^PHP (Deprecated|Warning):'