Add commentaries, renum scripts

This commit is contained in:
Thibault Ayanides
2020-12-22 15:58:10 +01:00
parent 7f990b5e53
commit 87e242a42d
57 changed files with 125 additions and 104 deletions

View File

@ -18,12 +18,12 @@ HARDENING_LEVEL=3
DESCRIPTION="Configure logrotate to assign appropriate permissions."
# This function will be called if the script status is on enabled / audit mode
audit () {
audit() {
:
}
# This function will be called if the script status is on enabled mode
apply () {
apply() {
:
}
@ -38,8 +38,8 @@ if [ -r /etc/default/cis-hardening ]; then
. /etc/default/cis-hardening
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."
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