@IRJ said in How to configure automatic updates on Ubuntu 18.04 LTS:
Scripted a bit for anyone interested
FWIW, this line didn't work for me --
sed -i '/Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true"/a\\ "${distro_id}:${distro_codename}-updates"; ' /etc/apt/apt.conf.d/50unattended-upgradesI believe this is due to the line being inserted outside the Unattended-Upgrade::Allowed-Origins grouping.