Merge pull request #28 in IAAS/cis-hardening from dev/cherlin/cis-root-dir-in-env to master

* commit '5b11b1628a690e0bbd9d34cd5b83dbe74ac6fba7':
  Expand tabs to 4 spaces and trim trailing spaces
  Remove unnecessary CIS_ROOT_DIR empty assignation
  Applying batch edit to all hardening/*.sh scripts for new CIS_ROOT_DIR management
  Changing CIS_ROOT_DIR management in env in bin/hardening.sh
  Change src/skel to allow setting CIS_ROOT_DIR in env and not just sourcing /etc/default/cis-hardening. Making the whole lib more versatile.
This commit is contained in:
Thibault Dewailly 2017-12-05 11:32:45 +01:00
commit 73c640f4d1
193 changed files with 1358 additions and 1732 deletions

View File

@ -22,7 +22,6 @@ AUDIT_ALL=0
AUDIT_ALL_ENABLE_PASSED=0 AUDIT_ALL_ENABLE_PASSED=0
ALLOW_SERVICE_LIST=0 ALLOW_SERVICE_LIST=0
SET_HARDENING_LEVEL=0 SET_HARDENING_LEVEL=0
CIS_ROOT_DIR=''
usage() { usage() {
cat << EOF cat << EOF
@ -136,16 +135,14 @@ while [[ $# > 0 ]]; do
done done
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z $CIS_ROOT_DIR ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
[ -r $CIS_ROOT_DIR/lib/constants.sh ] && . $CIS_ROOT_DIR/lib/constants.sh [ -r $CIS_ROOT_DIR/lib/constants.sh ] && . $CIS_ROOT_DIR/lib/constants.sh
[ -r $CIS_ROOT_DIR/etc/hardening.cfg ] && . $CIS_ROOT_DIR/etc/hardening.cfg [ -r $CIS_ROOT_DIR/etc/hardening.cfg ] && . $CIS_ROOT_DIR/etc/hardening.cfg

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -73,16 +73,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -73,16 +73,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -73,16 +73,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -89,15 +89,13 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
exit 128
fi fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)

View File

@ -41,16 +41,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -91,15 +91,13 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
exit 128
fi fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)

View File

@ -33,16 +33,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -67,16 +67,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -47,16 +47,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -29,16 +29,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -53,16 +53,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -54,16 +54,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -43,16 +43,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -43,16 +43,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -43,16 +43,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -58,16 +58,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -58,16 +58,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -58,16 +58,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -44,16 +44,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -46,16 +46,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -46,16 +46,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -44,16 +44,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -42,16 +42,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -44,16 +44,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -44,16 +44,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -47,16 +47,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -54,16 +54,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -61,16 +61,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -71,16 +71,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -105,16 +105,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -64,16 +64,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -63,16 +63,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -43,16 +43,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -45,16 +45,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -44,16 +44,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -68,16 +68,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -66,16 +66,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -53,16 +53,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -64,16 +64,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -43,16 +43,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -63,16 +63,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -65,16 +65,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -47,16 +47,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -46,16 +46,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -43,16 +43,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -44,16 +44,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -76,16 +76,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -75,16 +75,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -47,16 +47,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -76,16 +76,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -75,16 +75,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -47,16 +47,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -56,16 +56,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -49,16 +49,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -49,16 +49,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -48,16 +48,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -57,16 +57,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

View File

@ -59,16 +59,14 @@ check_config() {
} }
# Source Root Dir Parameter # Source Root Dir Parameter
if [ ! -r /etc/default/cis-hardening ]; then if [ -r /etc/default/cis-hardening ]; then
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
exit 128
else
. /etc/default/cis-hardening . /etc/default/cis-hardening
if [ -z ${CIS_ROOT_DIR:-} ]; then fi
echo "No CIS_ROOT_DIR variable, aborting" if [ -z "$CIS_ROOT_DIR" ]; then
exit 128 echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
fi echo "Cannot source CIS_ROOT_DIR variable, aborting."
fi exit 128
fi
# Main function, will call the proper functions given the configuration (audit, enabled, disabled) # Main function, will call the proper functions given the configuration (audit, enabled, disabled)
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then

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