Your message dated Sat, 29 Jul 2006 14:49:49 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#380331: ejabberd: postinst script fails when admin is 
already registered
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: ejabberd
Severity: important

Hi,

the postinst script fails when the admin account already exists. It
shouldn't.

   Starting jabber server: ejabberd.
   User "[EMAIL PROTECTED]" already registered at node [EMAIL PROTECTED]
   dpkg: error processing ejabberd (--configure):
    subprocess post-installation script returned error exit status 1

My quick fix for this was

--- /tmp/ejabberd.postinst  2006-07-29 12:07:55.170647099 +0200
+++ /var/lib/dpkg/info/ejabberd.postinst        2006-07-29 12:03:45.041976562 
+0200
@@ -80,7 +80,7 @@
     FLAG="/var/lib/ejabberd/.admin_registered"
     if [ ! -f $FLAG -a -n "$USER" -a -n "$PASSWD" ]; then
         sleep 5
-        ejabberdctl register "$USER" "$HOST" "$PASSWD"
+        ejabberdctl register "$USER" "$HOST" "$PASSWD" || true
  touch $FLAG
     fi
 }

This may be suboptimal when there is another reason for register
failure.

       Goodbyte, Gerd.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


--- End Message ---
--- Begin Message ---
Hello Gerd,


On 29 Jul 2006 12:27:05 +0200, Gerd Flaig <[EMAIL PROTECTED]> wrote:
the postinst script fails when the admin account already exists. It
shouldn't.

please read the debconf messages before answering them:

Template: ejabberd/user
...
Leave empty if you don't want to create an admin account automatically.

You have explicitely asked for creating the already existing account,
haven't you?


Regards,
Torsten

--
http://www.twerner42.de/

--- End Message ---

Reply via email to