Package: ejabberd Version: 2.1.5-2 Severity: normal While upgrading from 2.1.5-1 to 2.1.5-2 the ejabberd package post-installation would fail with the following output:
Setting up ejabberd (2.1.5-2) ...
adduser: The user `ejabberd' already exists. Exiting.
dpkg: error processing ejabberd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ejabberd
To work-around this error, I edited ejabberd.postinst.
Before:
configure|reconfigure)
adduser --quiet --system --shell /bin/sh --group --home
/var/lib/ejabberd ejabberd
setup_ejabberd "$@"
;;
After:
configure|reconfigure)
if ! getent passwd ejabberd > /dev/null; then
adduser --quiet --system --shell /bin/sh --group \
--home /var/lib/ejabberd ejabberd
fi
setup_ejabberd "$@"
;;
Thanks!
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ejabberd depends on:
ii adduser 3.112 add and remove users and groups
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii erlang-asn1 1:14.a-dfsg-2 Erlang/OTP modules for ASN.1 suppo
ii erlang-base-hipe [erlan 1:14.a-dfsg-2 Erlang/OTP HiPE enabled virtual ma
ii erlang-crypto 1:14.a-dfsg-2 Erlang/OTP cryprographic modules
ii erlang-inets 1:14.a-dfsg-2 Erlang/OTP Internet clients and se
ii erlang-mnesia 1:14.a-dfsg-2 Erlang/OTP distributed relational/
ii erlang-odbc 1:14.a-dfsg-2 Erlang/OTP interface to SQL databa
ii erlang-public-key 1:14.a-dfsg-2 Erlang/OTP public key infrastructu
ii erlang-ssl 1:14.a-dfsg-2 Erlang/OTP implementation of SSL
ii erlang-syntax-tools 1:14.a-dfsg-2 Erlang/OTP modules for handling ab
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libpam0g 1.1.1-6 Pluggable Authentication Modules l
ii libssl0.9.8 0.9.8o-2 SSL shared libraries
ii openssl 0.9.8o-2 Secure Socket Layer (SSL) binary a
ii ucf 3.0025+nmu1 Update Configuration File: preserv
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
ejabberd recommends no packages.
Versions of packages ejabberd suggests:
pn imagemagick | graphicsmagick- <none> (no description available)
pn libunix-syslog-perl <none> (no description available)
-- Configuration Files:
/etc/ejabberd/inetrc [Errno 13] Permission denied: u'/etc/ejabberd/inetrc'
-- debconf information excluded
--
Gerald Turner Email: [email protected] JID: [email protected]
GPG: 0xFA8CD6D5 21D9 B2E8 7FE7 F19E 5F7D 4D0C 3FA0 810F FA8C D6D5
pgpVVpVbDssvI.pgp
Description: PGP signature

