Re: RFC: best practice creating database
On 07-Oct-04, 10:19 (CDT), Uwe Steinmann <firstname.lastname@example.org> wrote:
> On Thu, Oct 07, 2004 at 03:38:59PM +0200, Philipp Matthias Hahn wrote:
> > Hello!
> > What is consideres best practice when a package uses a SQL database
> > (mysql, postgresql) and needs to create its own catalog and/or tables?
> > [ ] Disable the package until someone has manually setup the database?
> > [ ] Ask a lot of questions via debconf and try to setup in postconf?
> I'd go for the second option.
But please make sure that the postinst doesn't actually contain the
code, but instead calls an external script, so that when it fails (and
it will), it's possible to run it externally by hand. Ditto upgrade
Also, make sure the README.Debian has the correct instructions for
performing these actions: script name, and any arguments that must be
passed on the command line, or info that might be prompted for.
The irony is that Bill Gates claims to be making a stable operating
system and Linus Torvalds claims to be trying to take over the
world. -- seen on the net