From 25a201cfbd8edd036384835c479da4047fbb981f Mon Sep 17 00:00:00 2001 From: jtimberman Date: Wed, 11 Mar 2009 15:27:10 -0600 Subject: [PATCH] cook-21, include capistrano recipe and fix modes due to chef-174 --- capistrano/definitions/cap_setup.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/capistrano/definitions/cap_setup.rb b/capistrano/definitions/cap_setup.rb index 481959274..7ff002227 100644 --- a/capistrano/definitions/cap_setup.rb +++ b/capistrano/definitions/cap_setup.rb @@ -17,19 +17,21 @@ # limitations under the License. # -define :cap_setup, :path => nil, :owner => "root", :group => "deploy", :appowner => "nobody" do +define :cap_setup, :path => nil, :owner => "root", :group => "root", :appowner => "nobody" do + include_recipe "capistrano" directory params[:path] do owner params[:owner] group params[:group] mode 0755 end - + + # after chef-174 fixed, change mode to 2775 %w{ releases shared }.each do |dir| directory "#{params[:path]}/#{dir}" do owner params[:owner] group params[:group] - mode 2775 + mode 0775 end end @@ -37,7 +39,7 @@ directory "#{params[:path]}/shared/#{dir}" do owner params[:appowner] group params[:group] - mode 2775 + mode 0775 end end