[augeas-devel] Creating new files from tree additions
Dean Wilson
dean.wilson at gmail.com
Thu Apr 24 14:39:27 UTC 2008
On 23/04/2008, David Lutterkort <dlutter at redhat.com> wrote:
> That's because the path should start with
> "/files/etc/apt/sources.list.d/bar/1", i.e. have an additional "1/"
> component after the "bar/" - if I do that, I get something that works
So this works for you?
#-------------------------------
echo "Adding blue owl line to /etc/apt/sources.list.d/blueowl-etch.list ... "
sudo /usr/local/bin/augtool -b <<EOF
set /files/etc/apt/sources.list.d/blueowl-etch.list/1/type deb
set /files/etc/apt/sources.list.d/blueowl-etch.list/1/uri http://blueowl.it/
set /files/etc/apt/sources.list.d/blueowl-etch.list/1/distribution etch
set /files/etc/apt/sources.list.d/blueowl-etch.list/1/component[1] main
set /files/etc/apt/sources.list.d/blueowl-etch.list/1/component[2] contrib
set /files/etc/apt/sources.list.d/blueowl-etch.list/1/component[3] non-free
save
print /files/etc/apt/sources.list.d/blueowl-etch.list/
EOF
echo "Exiting - finished with /etc/apt/sources.list.d/blueowl-etch.list ... "
grep blue /etc/apt/sources.list.d/blueowl-etch.list
#-------------------------------
Are you running 0.8 or repo?
--
Dean Wilson http://www.unixdaemon.net
Profanity is the one language all programmers understand
--- Anon
More information about the augeas-devel
mailing list