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

Re: postinstall script and debconf configuration



This one time, at band camp, Matthijs Mohlmann said:
> On somehow i can't get this to work. And i don't know why it won't work:

You never call the function config() from within the case statement?

That, and since you're uisng set -e (as you should be), it'd be better 
to add

'|| true' 

to all the db_get calls, and do an 

[ -z "$value" ] && value=false

to set the default, rather than hoping debconf always returns something.
-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------

Attachment: pgpv_paaG0ll5.pgp
Description: PGP signature


Reply to: