X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/06c6cb5301017c8f10bec66ef474a5b1678c56a9..44166d054d076ce26743c466ce002d7bc2e3c4dd:/cookbooks/backup/recipes/default.rb diff --git a/cookbooks/backup/recipes/default.rb b/cookbooks/backup/recipes/default.rb index 0999231ef..64e63fdee 100644 --- a/cookbooks/backup/recipes/default.rb +++ b/cookbooks/backup/recipes/default.rb @@ -32,6 +32,15 @@ directory "/store/backup" do recursive true end +%w[planet tile www].each do |service| + directory "/store/logs/#{service}.openstreetmap.org" do + owner "osmbackup" + group "osmbackup" + mode "2755" + recursive true + end +end + cookbook_file "/usr/local/bin/expire-backups" do owner "root" group "root"