From bab85d89669823142b67f6c4ae3d770a8db868ef Mon Sep 17 00:00:00 2001 From: Ali Date: Sun, 29 Jun 2025 23:34:32 +0100 Subject: [PATCH] tests and formatting --- setup_harden_debian_ubuntu.sh | 4 ++-- setup_harden_debian_ubuntu.sh.sha256 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup_harden_debian_ubuntu.sh b/setup_harden_debian_ubuntu.sh index 2e4e5d2..c96e289 100644 --- a/setup_harden_debian_ubuntu.sh +++ b/setup_harden_debian_ubuntu.sh @@ -1656,7 +1656,7 @@ configure_security_audit() { print_warning "Failed to install Lynis. Skipping Lynis audit." log "Lynis installation failed." else - print_info "Running Lynis audit (non-interactive mode)..." + print_info "Running Lynis audit (non-interactive mode, this will take a few minutes)..." if lynis audit system --quick >> "$AUDIT_LOG" 2>&1; then print_success "Lynis audit completed. Check $AUDIT_LOG for details." log "Lynis audit completed successfully." @@ -1788,7 +1788,7 @@ generate_summary() { printf " %-16s%s\n" "- Cron Schedule:" "$CRON_SCHEDULE" printf " %-16s%s\n" "- Notifications:" "$NOTIFICATION_STATUS" if [[ -f "$BACKUP_LOG" ]] && grep -q "Test backup successful" "$BACKUP_LOG" 2>/dev/null; then - printf " %-16s%s\n" "- Test Status:" "Successful" + printf " %-16s%s\n" "- Test Status:" "${GREEN}Successful${NC}" elif [[ -f "$BACKUP_LOG" ]]; then printf " %-16s%s\n" "- Test Status:" "Failed (check $BACKUP_LOG)" else diff --git a/setup_harden_debian_ubuntu.sh.sha256 b/setup_harden_debian_ubuntu.sh.sha256 index e584045..1e10689 100644 --- a/setup_harden_debian_ubuntu.sh.sha256 +++ b/setup_harden_debian_ubuntu.sh.sha256 @@ -1 +1 @@ -f92a4a494689d7c9d6bc42a87ce6a325f1d40099cf1b8f3cb29c8eea9e3f6ce2 setup_harden_debian_ubuntu.sh +c4ff92d755b8c862c0a5c885b0a1dfa68832a1a5465e1e9913386374202c6a7a setup_harden_debian_ubuntu.sh