Sha256: b4b8b6d58b1afb45068aa64991cbfcf889012963616383b9fac88d338ae10177

Contents?: true

Size: 630 Bytes

Versions: 67

Compression:

Stored size: 630 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

67 entries across 67 versions & 3 rubygems

Version Path
auser-poolparty-1.1.4 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.1.5 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.1.6 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.1.7 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.0 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.1 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.10 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.11 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.12 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.2 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.3 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.4 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.7 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.8 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.2.9 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.3.0 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.3.1 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.3.10 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.3.11 vendor/chef/apache2/templates/default/a2dismod.erb
auser-poolparty-1.3.12 vendor/chef/apache2/templates/default/a2dismod.erb