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

Re: postinst and debconf again



On Thu, Dec 19, 2002 at 03:12:26PM +0100, Bastian Kleineidam wrote:
> On Thu, Dec 19, 2002 at 02:58:11PM +0100, pp wrote:
> > I posted my problem some time ago.

> > postinst script:
> Hmm, this looks like a debian/config script, not a postinst script.
> But the debconf docs are fading already in my minds, so it might be ok.

It looks like the questions asked are related to things that may not be
available on the system (databases) at the preconfigure stage, so in this
case I think it's ok to ask in the postinst script itself.

-- 
Steve Langasek
postmodern programmer

> > #! /bin/sh -ex
> > 
> > . /usr/share/debconf/confmodule
> > db_version 2.0
> > db_title "Midgard library package."
> > 
> > if  $mysqlcmd -D mysql -e 'use midgard;' >/dev/null 2>&1 ; then
> > 
> >         db_input "high" midgard/error
> >         db_go
> >         db_stop
> > else
> > db_input high midgard/do_setup || true
> > db_go
> db_go || true ?

Attachment: pgpdc9HhPy730.pgp
Description: PGP signature


Reply to: