Applying batch edit to all hardening/*.sh scripts for new CIS_ROOT_DIR management

This commit is contained in:
Charles Herlin 2017-10-25 14:50:39 +02:00
parent 119d532a7f
commit 5b2404dab8
191 changed files with 1342 additions and 1713 deletions

View File

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -73,15 +73,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -73,15 +73,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -73,15 +73,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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,15 +41,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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,15 +33,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -67,15 +67,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -47,15 +47,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -29,15 +29,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -53,15 +53,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -54,15 +54,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -43,15 +43,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -43,15 +43,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -43,15 +43,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -58,15 +58,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -58,15 +58,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -58,15 +58,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -44,15 +44,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -46,15 +46,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -46,15 +46,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -44,15 +44,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -42,15 +42,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -44,15 +44,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -44,15 +44,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -47,15 +47,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -54,15 +54,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -61,15 +61,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -71,15 +71,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -105,15 +105,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -64,15 +64,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -63,15 +63,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -43,15 +43,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -45,15 +45,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -44,15 +44,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -68,15 +68,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -66,15 +66,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -53,15 +53,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -64,15 +64,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -43,15 +43,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -63,15 +63,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -65,15 +65,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -47,15 +47,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -46,15 +46,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -43,15 +43,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -44,15 +44,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -76,15 +76,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -75,15 +75,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -47,15 +47,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -76,15 +76,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -75,15 +75,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -47,15 +47,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -56,15 +56,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -49,15 +49,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -49,15 +49,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -48,15 +48,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -57,15 +57,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -59,15 +59,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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

@ -49,15 +49,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
echo "No CIS_ROOT_DIR variable, aborting"
exit 128
fi fi
if [ -z "$CIS_ROOT_DIR" ]; then
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
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)

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