Ubuntu

Autoupdate

apt update && apt upgrade
apt install unattended-upgrades

dpkg-reconfigure -plow unattended-upgrades

nano /etc/apt/apt.conf.d/50unattended-upgrades
    Unattended-Upgrade::Automatic-Reboot „true“;
    Unattended-Upgrade::Automatic-Reboot-Time „16:00“;

ufw allow http

unattended-upgrades --dry-run