I would like to deploy some arbitrary files to a unix server. Here's
my basic workflow:
1. Zip up the files on my windows machine.
2. Use scp to stage them on a Unix server
3. Log into the server as my regular id.
4. Use "sudo su - superuser" to become the super user.
5. Unzip the zip file in the proper place.
Step 4 is crucial. If I'm not logged in as the super user when I
unzip the files, then the security permissions will be wrong. Also,
please note that I am not entitled to log directly into the server as
the super user. Finally, please note that I am not allowed to use the
chown command as a regular user.
Here's basically how 4 and 5 look in the shell
(tom) $ sudo su - superuser
Password:
(supersuer) $ unzip somefile.zip
Here's what I have tried. First, I tried using channels and such:
* http://pastie.org/928011
This creates /tmp/foo, but the owner is "tom", and capistrano hangs.
I then got rid of the channel argument and did this:
* http://pastie.org/928014
This gave me identical results.
Finally, I tried putting everything on the same line like this:
* http://pastie.org/928015
This gave me the following results:
[someserver] executing command
** [out :: someserver] Sun Microsystems Inc. SunOS 5.10
Generic January
2005
*** [err :: someserver] stty: : Invalid argument
*** [err :: someserver] stty: : Invalid argument
Also, this did not touch /tmp/foo
Does anyone know what I'm doing wrong? Is there a better way to do
this?
Also, here's my Ruby and Capistrano versions:
Ruby - ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
Capistrano - Capistrano v2.5.18
Thanks!
Tom Purl
--
* 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.com/group/capistrano?hl=en