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)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to