Added exit code to CIS_ROOT_DIR test def, optimized sed and sort

This commit is contained in:
thibault.dewailly 2016-04-20 11:29:44 +02:00
parent 1d7865dd68
commit 3ece442743
194 changed files with 195 additions and 19 deletions

View File

@ -20,6 +20,7 @@ AUDIT=0
APPLY=0 APPLY=0
AUDIT_ALL=0 AUDIT_ALL=0
AUDIT_ALL_ENABLE_PASSED=0 AUDIT_ALL_ENABLE_PASSED=0
CIS_ROOT_DIR=''
usage() { usage() {
cat << EOF cat << EOF
@ -94,6 +95,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi
@ -103,7 +105,7 @@ fi
[ -r $CIS_ROOT_DIR/lib/utils.sh ] && . $CIS_ROOT_DIR/lib/utils.sh [ -r $CIS_ROOT_DIR/lib/utils.sh ] && . $CIS_ROOT_DIR/lib/utils.sh
# Parse every scripts and execute them in the required mode # Parse every scripts and execute them in the required mode
for SCRIPT in $(ls $CIS_ROOT_DIR/bin/hardening/*.sh | sort -V); do for SCRIPT in $(ls $CIS_ROOT_DIR/bin/hardening/*.sh -v); do
info "Treating $SCRIPT" info "Treating $SCRIPT"
if [ $AUDIT = 1 ]; then if [ $AUDIT = 1 ]; then

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -78,6 +78,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -78,6 +78,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -78,6 +78,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -83,6 +83,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -46,6 +46,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -38,6 +38,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -72,6 +72,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -34,6 +34,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -48,6 +48,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -48,6 +48,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -48,6 +48,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -63,6 +63,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -63,6 +63,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -63,6 +63,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -51,6 +51,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -51,6 +51,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -47,6 +47,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -59,6 +59,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -53,6 +53,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -53,6 +53,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -53,6 +53,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -57,6 +57,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -76,6 +76,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -101,6 +101,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -69,6 +69,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -68,6 +68,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -48,6 +48,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -62,6 +62,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -50,6 +50,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -62,6 +62,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -62,6 +62,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -73,6 +73,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -62,6 +62,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -62,6 +62,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -62,6 +62,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -71,6 +71,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -58,6 +58,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -69,6 +69,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -48,6 +48,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -68,6 +68,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -46,6 +46,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -51,6 +51,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -48,6 +48,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -49,6 +49,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -81,6 +81,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -53,6 +53,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -80,6 +80,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -81,6 +81,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -81,6 +81,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -61,6 +61,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -53,6 +53,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -53,6 +53,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -52,6 +52,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -59,6 +59,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

View File

@ -63,6 +63,7 @@ else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then if [ -z $CIS_ROOT_DIR ]; then
echo "No CIS_ROOT_DIR variable, aborting" echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
fi fi

Some files were not shown because too many files have changed in this diff Show More