]> granicus.if.org Git - icinga2/commitdiff
Fix configuration path in the i2endfeature script.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 27 Sep 2013 09:22:18 +0000 (11:22 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 27 Sep 2013 09:22:18 +0000 (11:22 +0200)
tools/i2enfeature.in

index a83b1a1dae0ba814c339b80eabc8d1a93430a305..f7b6f0b82ed3d17e40da7a35d1f81d1e62fbe9c8 100644 (file)
@@ -27,7 +27,7 @@ if [ -z "$1" ]; then
        echo
        echo -n "Available feature: "
 
-       for file in $ICINGA2CONFDIR/mods-available/*.conf; do
+       for file in $ICINGA2CONFDIR/features-available/*.conf; do
                echo -n $(basename -- $file .conf)
        done
 
@@ -38,27 +38,27 @@ fi
 
 FEATURE=$1
 
-if [ ! -e $ICINGA2CONFDIR/mods-available/$FEATURE.conf ]; then
+if [ ! -e $ICINGA2CONFDIR/features-available/$FEATURE.conf ]; then
        echo "The feature '$FEATURE' does not exist."
        exit 1
 fi
 
 if [ "$TOOL" = "i2enfeature" ]; then
-       if [ -e $ICINGA2CONFDIR/mods-enabled/$FEATURE.conf ]; then
+       if [ -e $ICINGA2CONFDIR/features-enabled/$FEATURE.conf ]; then
                echo "The feature '$FEATURE' is already enabled."
                exit 0
        fi
 
-       ln -s ../mods-available/$FEATURE.conf $ICINGA2CONFDIR/mods-enabled/
+       ln -s ../features-available/$FEATURE.conf $ICINGA2CONFDIR/features-enabled/
 
        echo "Module '$FEATURE' was enabled."
 elif [ "$TOOL" = "i2disfeature" ]; then
-       if [ ! -e $ICINGA2CONFDIR/mods-enabled/$FEATURE.conf ]; then
+       if [ ! -e $ICINGA2CONFDIR/features-enabled/$FEATURE.conf ]; then
                echo "The feature '$FEATURE' is already disabled."
                exit 0
        fi
 
-       rm -f $ICINGA2CONFDIR/mods-enabled/$FEATURE.conf
+       rm -f $ICINGA2CONFDIR/features-enabled/$FEATURE.conf
 
        echo "Module '$FEATURE' was disabled."
 fi