From 9afacd411990bce2d5b73798f35c74397a36e302 Mon Sep 17 00:00:00 2001 From: hcornet Date: Fri, 25 Apr 2025 09:08:40 +0200 Subject: [PATCH] Update : affichage --- common.sh | 11 ++++++++++- modules/additional_hardening.sh | 3 +++ modules/antivirus.sh | 3 +++ modules/auditing.sh | 3 +++ 4 files changed, 19 insertions(+), 1 deletion(-) 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