X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/96234f772722dacc4ca4d63509ed8b6d8e3fe61a..524d90d022751710980613df6b943291fc1498d6:/cookbooks/piwik/recipes/default.rb diff --git a/cookbooks/piwik/recipes/default.rb b/cookbooks/piwik/recipes/default.rb index 3b7a40057..948c03af4 100644 --- a/cookbooks/piwik/recipes/default.rb +++ b/cookbooks/piwik/recipes/default.rb @@ -20,7 +20,7 @@ include_recipe "apache" include_recipe "geoipupdate" include_recipe "mysql" -include_recipe "php::apache-fpm" +include_recipe "php::apache" passwords = data_bag_item("piwik", "passwords") @@ -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