Skip to content

Commit

Permalink
set_permissions: fix for acl method
Browse files Browse the repository at this point in the history
  • Loading branch information
lexfrl committed Aug 24, 2012
1 parent 4778e6f commit f803484
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/symfony2/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"chmod +a \"#{user} allow delete,write,append,file_inherit,directory_inherit\" %s",
"chmod +a \"#{webserver_user} allow delete,write,append,file_inherit,directory_inherit\" %s"
],
:acl => ["setfacl -dR -m u:#{user}:rwx -m u:#{webserver_user}:rwx %s"],
:acl => [
"setfacl -R -m u:#{user}:rwx -m u:#{webserver_user}:rwx %s",
"setfacl -dR -m u:#{user}:rwx -m u:#{webserver_user}:rwx %s"
],
:chown => ["chown #{webserver_user} %s"]
}

Expand Down

1 comment on commit f803484

@colinmutter
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After following capifony stock installation/setup instructions, when I run this Capistrano is not defaulting :user to anything, and subsequently kicks out a message of

/Library/Ruby/Gems/1.8/gems/capistrano-2.13.3/lib/capistrano/configuration/namespaces.rb:193:in `method_missing': undefined local variable or method `user' for #<Capistrano::Configuration::Namespaces::Namespace:0x1024dd688> (NameError)
from /Library/Ruby/Gems/1.8/gems/capifony-2.1.15.dev/lib/symfony2/deploy.rb:23:in `load'.

when running cap:deploy.

Explicitly defining :user seems to allow it to work just fine.

Please sign in to comment.