On Tue, Oct 11, 2005 at 01:07:07PM +1000, Craig Small wrote:
> It resolves the mysql "postgres" user issue, that looks a lot cleaner.
> However I cannot install db-test twice.  The scripts do not realise
> the difference between a new install and a re-install of the same
> version of the package. dpkg-reconfigure will also fail.

i believe that this is in fact a design decision.  one of the tenets of
dbconfig-common is to make installation/removal as much inline with
the dpkg process as possible.  therefore, if you try and install
the package twice, you try to install the db twice.  even more
to the point running dpkg-reconfigure is doing exactly what it
should do, if you provide the same dbname twice.

> However, it is pretty simple to fix, check $3 and if it exists do
> not use the create scripts.

unfortunately, that won't work, because dpkg-reconfigure sets $3,
installing from rcfile state wouldn't work, and iirc there were some
other issues.

perhaps a reasonable compromise could be reached such that an "ignore"
option were added for install errors, so that in this situation the
admin could say "shut up, i know what i'm doing"?

anyway, i'll make an upload in a bit that will close this bug, but
if you think the ignore feature would be a good solution to this
second problem, either contact me privately or open another bugreport
for it.

        sean

-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to