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

a2enmod fails - Fix included



Hi,

in apache2-common (2.0.51-2) the a2enmod script is called.
Unfortunly there are situations where this may fail:

You grep for prefork:

    #! /bin/sh -e
    ...

    #figure out if we're on a prefork or threaded mpm
    if [ -x /usr/sbin/apache2 ]; then
            PREFORK=`/usr/sbin/apache2 -l|grep prefork`
    fi


This grep may fail and due to the '-e'-option of the script the complete
script fails and thus prevents the installation of apache2-common.

I think, this is not intentional.

            PREFORK=`/usr/sbin/apache2 -l|grep prefork || true`

would solve the problem.


    Best regards from Dresden
    Viele Gruesse aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ------------------ internet & unix support -
 Debian GNU/Linux Woody + KDE 3.1 + Bunk -- DVD / CD ---------
 Heiko Schlittermann HS12-RIPE -------------------------------
 pgp: A1 7D F6 7B 69 73 48 35  E1 DE 21 A7 A8 9A 77 92 -------
 gpg: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -----

Attachment: signature.asc
Description: Digital signature


Reply to: