Update : affichage
This commit is contained in:
parent
ecb07e8628
commit
9afacd4119
11
common.sh
11
common.sh
@ -41,8 +41,17 @@ log_message() {
|
|||||||
|
|
||||||
# Display to console with colors
|
# Display to console with colors
|
||||||
case "$LEVEL" in
|
case "$LEVEL" in
|
||||||
"INFO")
|
"SCRIPT")
|
||||||
|
echo ""
|
||||||
|
echo "============================================================================================"
|
||||||
|
echo ""
|
||||||
echo -e "${BLUE}[$LEVEL]${NC} $MESSAGE"
|
echo -e "${BLUE}[$LEVEL]${NC} $MESSAGE"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
|
"INFO")
|
||||||
|
echo ""
|
||||||
|
echo -e "${BLUE}[$LEVEL]${NC} $MESSAGE"
|
||||||
|
echo
|
||||||
;;
|
;;
|
||||||
"WARNING")
|
"WARNING")
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -338,6 +338,9 @@ EOF
|
|||||||
log_message "SUCCESS" "System accounts secured"
|
log_message "SUCCESS" "System accounts secured"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
log_message "SCRIPT" "additional_hardening.sh"
|
||||||
|
|
||||||
# Main execution for additional hardening
|
# Main execution for additional hardening
|
||||||
harden_system_settings
|
harden_system_settings
|
||||||
|
|
||||||
|
@ -110,6 +110,9 @@ EOF
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
log_message "SCRIPT" "antivirus.sh"
|
||||||
|
|
||||||
# Main execution for antivirus
|
# Main execution for antivirus
|
||||||
configure_clamav
|
configure_clamav
|
||||||
|
|
||||||
|
@ -120,6 +120,9 @@ EOF
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
log_message "SCRIPT" "auditing.sh"
|
||||||
|
|
||||||
# Main execution for auditing
|
# Main execution for auditing
|
||||||
configure_auditd
|
configure_auditd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user