~ubuntu-branches/ubuntu/saucy/apache2/saucy

« back to all changes in this revision

Viewing changes to debian/a2-scripts/a2dismod

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-10-13 19:46:10 UTC
  • Revision ID: james.westby@ubuntu.com-20041013194610-ccvqcz8vflh5zqrm
Tags: 2.0.50-12ubuntu4
Security Release. Patch from upstream for the following:
CAN-2004-0885SSLCypherSuite can be bypassed during renegotiation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
if [ -z $1 ]; then
 
4
        echo "Which module would you like to disable?"
 
5
        echo -n "Your choices are: "
 
6
        ls /etc/apache2/mods-enabled/*.load | \
 
7
        sed -e 's#/etc/apache2/mods-enabled/##g;' | sed -e 's/\.load$//g;' | xargs echo
 
8
        echo -n "Module name? "
 
9
        read MODNAME
 
10
else
 
11
        MODNAME=$1
 
12
fi
 
13
 
 
14
if ! [ -e /etc/apache2/mods-enabled/$MODNAME.load ]; then
 
15
        echo "This module is already disabled, or does not exist!"
 
16
        exit 1
 
17
fi
 
18
 
 
19
rm -f /etc/apache2/mods-enabled/$MODNAME.*
 
20
echo "Module $MODNAME disabled; run /etc/init.d/apache2 force-reload to fully disable."