#!/bin/bash # Update package lists and install unattended-upgrades sudo apt update && sudo apt install -y unattended-upgrades # Enable automatic updates sudo tee /etc/apt/apt.conf.d/20auto-upgrades > /dev/null <