On Mon, Oct 17, 2005 at 10:41:10PM +0200, Christian Hammers wrote:
> Package: netmrg
> Version: 0.18.2-11
> Severity: important
> 
> Hello
> 
> After installing netmrg and telling the debconf frontend to use "root"
> without password as database user (whis is common if people just want
> to try out some program), the postinst failed and my database was
> suddenly inaccessible. As this was reproducible I strongly guess your
> script tries to first remove the user (succeeded...) and then to recreate
> it (which failed as root was no longer permitted to connect :)) 
No, I think that's not the reason. It's more like the following:
1. A new user is created or an exiting user is updated with a 'grant'
   sql command.
2. The tables for the database are created, which for some reason
   fails.
3. postinst cleans up the mess by droping the database and droping
   the user, which is not a very good idea if the user already
         existed like in your case.

Unfortunately, /usr/share/wwwconfig-common/mysql-createuser.sh does
not tell me if a user already exists, so I have to check before
and drop the user only if it didn't exists.

> Please make that script a bit more fool prove :)
I will, thanks for bug.

  Uwe

-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  [EMAIL PROTECTED]
  Tel: +2331 840446    Fax: +2331 843920

Attachment: signature.asc
Description: Digital signature

Reply via email to