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

Re: How to update /etc/environment



On Fri, Mar 12, 2004 at 11:46:45AM +0100, Petter Reinholdtsen wrote:
> [Denis Barbier]
> > So writing all variables at the same time is the simplest solution.
> > How do you create /etc/environment?
> 
> The proxy settings are inserted using cfengine, while the language
> settings are inserted using a perl script.  This is the cfengine rules:
> 
>    # Enable proxy by default, but drop it on standalone until squid is
>     # configured on standalone
>     { /etc/environment
>       AutoCreate
>       AppendIfNoSuchLine "http_proxy=http://webcache:3128";
>       AppendIfNoSuchLine "ftp_proxy=http://webcache:3128";
>     }
> 
> The perl script is in the locale-config-skolelinux package available
> from APT source 'deb ftp://ftp.skolelinux.no/skolelinux/ woody local'.

My patch creates /etc/environment if it does not exist because, given
the timeline, I wanted to be very conservative; but if /etc/environment
exists before base-config is launched in your case, this wishlist
bugreport still applies for you.
I would prefer if you can fix termwrap yourself.

Denis



Reply to: