~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to debian/a2-scripts/a2enmod

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        exit 1
33
33
fi
34
34
 
 
35
DEPENDS=`grep "# Depends:" $SYSCONFDIR/mods-available/$MODNAME.load|cut -f2 -d:`
 
36
if [ ! -z "$DEPENDS" ]; then
 
37
        for i in $DEPENDS; do
 
38
                echo "Enabling $i as a dependency"
 
39
                /usr/sbin/a2enmod "$i";
 
40
        done
 
41
fi
 
42
        
35
43
for i in conf load; do 
36
44
        if [ -e $SYSCONFDIR/mods-available/$MODNAME.$i -a ! -e $SYSCONFDIR/mods-enabled/$MODNAME.$i ]; then
37
 
        ln -sf $SYSCONFDIR/mods-available/$MODNAME.$i $SYSCONFDIR/mods-enabled/$MODNAME.$i;
 
45
        cd $SYSCONFDIR/mods-enabled;
 
46
        ln -sf ../mods-available/$MODNAME.$i $MODNAME.$i;
38
47
        fi
39
48
done
40
49