#!/bin/bash # unattended-upgrades.sh - Configure automatic security updates (2025-enhanced) configure_unattended_upgrades() { log_info "Configuring automatic security updates..." case $DISTRO in ubuntu|debian) # Preseed debconf to avoid interactive prompts and install non-interactively sudo debconf-set-selections < /dev/null < /dev/null < /dev/null < /dev/null </dev/null; then log_info() { echo "[INFO] $1"; } log_success() { echo "[SUCCESS] $1"; } log_error() { echo "[ERROR] $1" >&2; } fi