X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/trac/recipes/default.rb diff --git a/cookbooks/trac/recipes/default.rb b/cookbooks/trac/recipes/default.rb index 70213e899..d61feab0e 100644 --- a/cookbooks/trac/recipes/default.rb +++ b/cookbooks/trac/recipes/default.rb @@ -60,7 +60,7 @@ execute "trac-deploy-#{site_name}" do command "trac-admin /var/lib/trac deploy #{site_directory}" user "root" group "root" - not_if { File.exists?(site_directory) } + not_if { File.exist?(site_directory) } end cookbook_file "/usr/local/bin/trac-authenticate" do @@ -83,3 +83,10 @@ template "/etc/sudoers.d/trac" do group "root" mode 0440 end + +template "/etc/cron.daily/trac-backup" do + source "backup.cron.erb" + owner "root" + group "root" + mode 0755 +end