Skip to content

Commit

Permalink
cook-21, include capistrano recipe and fix modes due to chef-174
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Mar 11, 2009
1 parent 2cf57cb commit 25a201c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions capistrano/definitions/cap_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,29 @@
# 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

%w{ log system }.each do |dir|
directory "#{params[:path]}/shared/#{dir}" do
owner params[:appowner]
group params[:group]
mode 2775
mode 0775
end
end

Expand Down

0 comments on commit 25a201c

Please sign in to comment.