X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/06c6cb5301017c8f10bec66ef474a5b1678c56a9..1bc8da5f3a3bfd6c3f0ba374f12d489d13831460:/cookbooks/backup/recipes/default.rb?ds=inline 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"