[Debian-med-packaging] r13405 - trunk/packages/gnuhealth/trunk/debian
Andreas Tille
andreas at an3as.eu
Wed Apr 24 21:11:18 UTC 2013
Hi,
On Wed, Apr 24, 2013 at 10:53:40PM +0200, Emilien Klein wrote:
> > when watching your commits I was wondering whether you know and have
> > considered using dbconfig-common to approach this.
>
> Yes, as you had recommended it in a previous email.
Ahhh, sorry for bothering you twice - just my bad memory.
> Updating the database can't be handled by dbconfig-common, as it needs
> to be handled by Tryton directly (which loops over all installed
> modules and makes sure the database are updated/created accordingly)
>
> I couldn't find the right way using dbconfig-common to verify that a
> PostgreSQL role existed (I found how to create or remove it, but not
> just verify if it exists), so for now I'm using a bash command.
> If you or any other team member know how to do that, I'd be glad to use it.
I doubt that this is the case. If you consider it a reasonable way the
best chance to sort this out is most probably asking the dbconfig-common
authors directly.
> I'm now learning about debconf to prompt the user if the default
> database wasn't used, since it will need to be manually updated.
Right debconf is your friend in these cases.
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list