fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] sudo and put


From: Bram Enning
Subject: Re: [Fab-user] sudo and put
Date: Wed, 17 Feb 2010 21:24:48 +0100

Ok, thanks!

On Tue, Feb 16, 2010 at 4:01 PM, Jeff Forcier <address@hidden> wrote:
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 <address@hidden> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>



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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]