On Friday 02 September 2005 06:36, Christian Perrier wrote:
> > The "Config file handling" example config script contains an error:
> >
> >         if [ -e $CONFIGFILE ]; then
> >             . $CONFIGFILE || true
> >
> >             # Store values from config file into
> >             # debconf db.
> >             db_set mypackage/foo FOO
> >             db_set mypackage/bar BAR
> >         fi
>
> Well, doesn't this just put the string FOO in the value for
> debconf/foo, and same for BAR?

It doesn't seem to be the intended behaviour.  If I correctly understand 
the example, the idea is to use debconf to update the configuration 
file (which is a shell script).  db_set is used here to seed the 
questions with the current settings, not a fixed string.

-- 
Jérémy

Attachment: pgpyUB9yReqs4.pgp
Description: PGP signature

Reply via email to