deprec 1.4.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/deprec/recipes.rb +6 -3
  2. metadata +2 -2
@@ -55,7 +55,7 @@ Capistrano.configuration(:must_exist).load do
55
55
  setup_db # XXX fails is database already exists
56
56
  end
57
57
 
58
- task :after_update, :roles => :app do
58
+ task :after_symlink, :roles => :app do
59
59
  set_perms_for_mongrel_dirs
60
60
  end
61
61
 
@@ -67,8 +67,11 @@ Capistrano.configuration(:must_exist).load do
67
67
 
68
68
  sudo "chgrp -R #{mongrel_group} #{tmp_dir} #{shared_dir}"
69
69
  sudo "chmod 0775 #{tmp_dir} #{shared_dir}"
70
- sudo "chown #{mongrel_user} #{files.join(' ')}"
71
- sudo "chgrp #{mongrel_group} #{files.join(' ')}"
70
+ # set owner and group of mogrels file (if they exist)
71
+ files.each { |file|
72
+ sudo "chown #{mongrel_user} #{file} || exit 0"
73
+ sudo "chgrp #{mongrel_group} #{file} || exit 0"
74
+ }
72
75
  end
73
76
 
74
77
  desc "Setup web server."
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: deprec
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.4.2
7
- date: 2007-05-03 00:00:00 +10:00
6
+ version: 1.5.0
7
+ date: 2007-05-05 00:00:00 +10:00
8
8
  summary: deployment recipes for capistrano
9
9
  require_paths:
10
10
  - lib