Hi Bram,

Right now that's the best way to do it, but we have plans for baking
that sort of thing into put() itself.

You can also use fabric.contrib.files.upload_template() (and just
don't supply a template context dict, or an empty one) which has a
use_sudo option. Again, though, this is an ugly workaround and put()
will get upgraded to be better, in the nearish future.

Best,
Jeff

On Mon, Feb 15, 2010 at 1:34 PM, Bram Enning <bramenn...@gmail.com> wrote:
> Hi,
> I'm just starting with Fabric so please be patient.
> I want to copy 'apache2.conf' from local to a host. Obviously you need to be
> root to do so, but how can this be achieved easily. Now I copy the file to
> the server, sudo and mv the file. It works but it's not pretty.
>
> Kind regears
>
> _______________________________________________
> Fab-user mailing list
> Fab-user@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org


_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to