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

Re: debconf: how to use variable substitution in a description?



Zed Pobre wrote:
> I'm making use of debconf for the first time; the original postinst
> reported a certain amount of sanity-checking information about the
> values of certain variables.  So far, I haven't found any way to do
> that in debconf.  I've tried using db_subst in various places to try
> to pass the values of the variables, exported and not, but no matter
> what, the substitutions come up empty.  Is this a supported feature?

Yes.

Template: foo/bar
Type: note
Description: blert: ${blaz}
 Blah blah blah foo: ${nerf}

db_subst foo/bar note "blert blert!"
db_subst foo/bar nerf "$NERF"

-- 
see shy jo


Reply to: