[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#258145: postinst: lossage with "a2enmod userdir"



Package: apache2-common
Version: 2.0.50-1
Severity: important

apache2-common.postinst contains an unconditional call to

    a2enmod userdir

, which is prone to failure for various reasons.  The main problem is
that it is not idempotent, as a2enmod exits with status 1 if the
module is already enabled; please either fix it to exit 0 in that case
or run a2enmod only if /etc/apache2/mods-enabled/userdir.load doesn't
already exist.  (The call should probably also be conditional on
upgrading from versions prior to 2.0.50-1, for the sake of weird
administrators who don't actually want to enable the module.)

In addition, a2enmod failed the first time around because I'd already
symlinked userdir.conf over; perhaps it should run "ln -sf" rather
than just "ln -s".

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages apache2-common depends on:
ii  debconf                     1.4.29       Debian configuration management sy
ii  debianutils                 2.8.3        Miscellaneous utilities specific t
ii  libapr0                     2.0.50-1     The Apache Portable Runtime
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-16    Berkeley v4.2 Database Libraries [
ii  libexpat1                   1.95.6-8     XML parsing C library - runtime li
ii  libldap2                    2.1.30-1     OpenLDAP libraries
ii  libmagic1                   4.09-1       File type determination library us
ii  libssl0.9.7                 0.9.7d-3     SSL shared libraries
ii  mime-support                3.26-1       MIME files 'mime.types' & 'mailcap
ii  net-tools                   1.60-10      The NET-3 networking toolkit
ii  openssl                     0.9.7d-3     Secure Socket Layer (SSL) binary a
ii  ssl-cert                    1.0-8        Simple debconf wrapper for openssl
ii  zlib1g                      1:1.2.1.1-3  compression library - runtime

-- no debconf information



Reply to: