Hi cindy,
You can solve it creating the files with your current user then do
a chown with sudo. Example:
task :chown_file do
run "touch ~/file_foo.txt"
sudo "chown www-data:www-data file_foo.txt"
end
Bye!
cswebgrl wrote:
> I've got a related question and the answer may be the same.
>
> I'd like to log in as myself into the server - set :user, "me". But
> when I create directories and write files, I'd like to do this as www-
> data. I have tried various combinations using runner and
> admin_runner, but haven't been able to make this work. Is that
> possible? If so, how can I accomplish this in my Cap recipe?
>
> Thanks!
> Cindy
> >
>
>
--
Rafa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---