X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/69576ff2b0e2684640d2985e59dc2d21e91facfd..0751a4f9434ce69a40996fbec967501fe43e4f83:/cookbooks/piwik/recipes/default.rb diff --git a/cookbooks/piwik/recipes/default.rb b/cookbooks/piwik/recipes/default.rb index 990e1c33e..948c03af4 100644 --- a/cookbooks/piwik/recipes/default.rb +++ b/cookbooks/piwik/recipes/default.rb @@ -123,9 +123,8 @@ apache_site "piwik.openstreetmap.org" do template "apache.erb" end -template "/etc/cron.d/piwiki" do - source "cron.erb" - owner "root" - group "root" - mode "0644" +cron_d "piwik" do + minute "5" + user "www-data" + command "/usr/bin/php /srv/piwik.openstreetmap.org/console core:archive --quiet --url=https://piwik.openstreetmap.org/" end