From 3b2afc1cf414e1477074eb803d9f832f90e869c1 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Tue, 16 Nov 2010 16:22:38 -0800 Subject: [PATCH] added file permissions to crossdomain.xml --- chef/cookbooks/common/recipes/nginx.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chef/cookbooks/common/recipes/nginx.rb b/chef/cookbooks/common/recipes/nginx.rb index 43de28e9d..a229023e8 100644 --- a/chef/cookbooks/common/recipes/nginx.rb +++ b/chef/cookbooks/common/recipes/nginx.rb @@ -22,6 +22,10 @@ cookbook_file "/usr/local/nginx/html/crossdomain.xml" do source "crossdomain.xml" end +execute "change crossdomain.xml permissions" do + command "chmod 755 /usr/local/nginx/html/crossdomain.xml" +end + config = YAML.load_file("/usr/local/app/diaspora/chef/cookbooks/common/files/default/thins.yml") template "/usr/local/nginx/conf/nginx.conf" do source "nginx.conf.erb"