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

Bug#710463: apache2-dev: dh_apache2 -e doesn't restart Apache when module enabled



Package: apache2-dev
Version: 2.4.4-4
Severity: normal

Thank you for dh_apache2 -e!

I think one more minor tweak is needed.  Right now, this suppresses
all module code in the postinst script.  However, if the module is
installed and enabled, Apache still needs to be restarted when the
module is upgraded, even if the module isn't supposed to be enabled
by default.

In other words, I think it should add postinst code that does
something akin to:

    if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
        . /usr/share/apache2/apache2-maintscript-helper

        if a2query -q -m <module> ; then
            apache2_reload restart
        fi
    fi

instead of adding the code to enable the module.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.8-2-686-pae (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 apache2-dev depends on:
ii  debhelper        9.20120909
ii  libapr1-dev      1.4.6-4
ii  libaprutil1-dev  1.5.2-1
ii  openssl          1.0.1e-2
ii  perl             5.14.2-21

apache2-dev recommends no packages.

apache2-dev suggests no packages.

-- no debconf information


Reply to: