1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Set umask during the setup task, so that intermediate directories are created with the proper permissions

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@5998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-01-19 02:21:24 +00:00
parent 55c64d0a9d
commit 253cb3ebbc
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Set umask during the setup task, so that intermediate directories are created with the proper permissions [NeilW]
* Removed -c/--caprc switch, since the new load order renders it meaningless (just use -f now) [Mike Bailey]
* Make sure the standard recipe loads first, so that .caprc and friends can override what it defines. [Mike Bailey]

View file

@ -37,9 +37,10 @@ end
desc "Set up the expected application directory structure on all boxes"
task :setup, :except => { :no_release => true } do
run <<-CMD
mkdir -p -m 775 #{deploy_to} #{releases_path} #{shared_path} #{shared_path}/system &&
mkdir -p -m 777 #{shared_path}/log &&
mkdir -p -m 777 #{shared_path}/pids
umask 02 &&
mkdir -p #{deploy_to} #{releases_path} #{shared_path} #{shared_path}/system &&
mkdir -p #{shared_path}/log &&
mkdir -p #{shared_path}/pids
CMD
end