Sha256: 8bebb0a1425d7f49f9cf82da0bf4ba980c4fea32d01d2d905c992df2a674ef8f

Contents?: true

Size: 631 Bytes

Versions: 7

Compression:

Stored size: 631 Bytes

Contents

#!/bin/sh -e

SYSCONFDIR='<%= node['apache']['dir'] %>'

if [ -z $1 ]; then
        echo "Which module would you like to disable?"
        echo -n "Your choices are: "
        ls $SYSCONFDIR/mods-enabled/*.load | \
        sed -e "s,$SYSCONFDIR/mods-enabled/,,g" | sed -e 's/\.load$//g;' | xargs echo
        echo -n "Module name? "
        read MODNAME
else
        MODNAME=$1
fi

if ! [ -e $SYSCONFDIR/mods-enabled/$MODNAME.load ]; then
        echo "This module is already disabled, or does not exist!"
        exit 1
fi

rm -f $SYSCONFDIR/mods-enabled/$MODNAME.*
echo "Module $MODNAME disabled; reload apache to fully disable."

Version data entries

7 entries across 6 versions & 4 rubygems

Version Path
fast_food-0.1.2 chef/cookbooks/apache2/templates/default/a2dismod.erb
fast_food-0.1.1 chef/cookbooks/apache2/templates/default/a2dismod.erb
fast_food-0.1.0 chef/cookbooks/apache2/templates/default/a2dismod.erb
agile_solo-0.1.0 spec/chef_repo/cookbooks/apache2/templates/default/a2dismod.erb
vagrant-managed-servers-0.1.0 cookbooks/apache2/templates/default/a2dismod.erb
vagrant-openstack-0.0.4 tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/apache2/version-uri/a7ab7e6a4c7e38e585540241cf05880e/package/templates/default/a2dismod.erb
vagrant-openstack-0.0.4 cookbooks/apache2/templates/default/a2dismod.erb