diff --git a/common.sh b/common.sh index 7bf3ccb..e1410c4 100644 --- a/common.sh +++ b/common.sh @@ -41,8 +41,17 @@ log_message() { # Display to console with colors case "$LEVEL" in - "INFO") + "SCRIPT") + echo "" + echo "============================================================================================" + echo "" echo -e "${BLUE}[$LEVEL]${NC} $MESSAGE" + echo + ;; + "INFO") + echo "" + echo -e "${BLUE}[$LEVEL]${NC} $MESSAGE" + echo ;; "WARNING") echo "" diff --git a/modules/additional_hardening.sh b/modules/additional_hardening.sh index 98ccbea..55983e9 100644 --- a/modules/additional_hardening.sh +++ b/modules/additional_hardening.sh @@ -338,6 +338,9 @@ EOF log_message "SUCCESS" "System accounts secured" } +# +log_message "SCRIPT" "additional_hardening.sh" + # Main execution for additional hardening harden_system_settings diff --git a/modules/antivirus.sh b/modules/antivirus.sh index 07a4c72..2d0ee4c 100644 --- a/modules/antivirus.sh +++ b/modules/antivirus.sh @@ -110,6 +110,9 @@ EOF fi } +# +log_message "SCRIPT" "antivirus.sh" + # Main execution for antivirus configure_clamav diff --git a/modules/auditing.sh b/modules/auditing.sh index 6370931..73373ce 100644 --- a/modules/auditing.sh +++ b/modules/auditing.sh @@ -120,6 +120,9 @@ EOF fi } +# +log_message "SCRIPT" "auditing.sh" + # Main execution for auditing configure_auditd