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 ea5aebe..22c3631 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):'