X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc:/cookbooks/wordpress/resources/site.rb diff --git a/cookbooks/wordpress/resources/site.rb b/cookbooks/wordpress/resources/site.rb index 72af236b6..2105101fc 100644 --- a/cookbooks/wordpress/resources/site.rb +++ b/cookbooks/wordpress/resources/site.rb @@ -20,7 +20,7 @@ require "securerandom" default_action :create -property :site, :kind_of => String, :name_attribute => true +property :site, :kind_of => String, :name_property => true property :aliases, :kind_of => [String, Array] property :directory, :kind_of => String property :version, :kind_of => String @@ -58,7 +58,7 @@ action :create do declare_resource :directory, site_directory do owner node[:wordpress][:user] group node[:wordpress][:group] - mode 0o755 + mode "755" end subversion site_directory do @@ -100,14 +100,14 @@ action :create do file "#{site_directory}/wp-config.php" do owner node[:wordpress][:user] group node[:wordpress][:group] - mode 0o644 + mode "644" content wp_config end declare_resource :directory, "#{site_directory}/wp-content/uploads" do owner "www-data" group "www-data" - mode 0o755 + mode "755" end file "#{site_directory}/sitemap.xml" do @@ -122,7 +122,7 @@ action :create do cookbook "wordpress" owner node[:wordpress][:user] group node[:wordpress][:group] - mode 0o644 + mode "644" backup false end