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

« back to all changes in this revision

Viewing changes to debian/a2-scripts/a2dismod

  • 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:
13
13
        MODNAME=$1
14
14
fi
15
15
 
16
 
if ! [ -e $SYSCONFDIR/mods-enabled/$MODNAME.load ]; then
17
 
        echo "This module is already disabled, or does not exist!"
18
 
        exit 1
 
16
DEPENDS=`grep -l "# Depends:.*$MODNAME" $SYSCONFDIR/mods-enabled/*.load| sed -e "s,$SYSCONFDIR/mods-enabled/,,g" | sed -e 's/\.load$//g;'`
 
17
#for i in $DEPENDS; do
 
18
#        a2dismod ${i%.load};
 
19
#done
 
20
if [ ! -z "$DEPENDS" ]; then
 
21
        echo "The following modules depend on the module you requested be uninstalled:"
 
22
        echo "$DEPENDS"
 
23
        echo "Please uninstall these first"
 
24
        exit 1
 
25
fi
 
26
 
 
27
if ! [ -L $SYSCONFDIR/mods-enabled/$MODNAME.load ]; then
 
28
    if [ -e $SYSCONFDIR/mods-available/$MODNAME.load ]; then
 
29
        echo "Module $MODNAME already disabled"
 
30
        exit 0
 
31
    fi
 
32
    echo "Module $MODNAME does not exist!"
 
33
    exit 1
19
34
fi
20
35
 
21
36
rm -f $SYSCONFDIR/mods-enabled/$MODNAME.*