This commit is contained in:
Matthew Saunders Brown 2024-06-15 14:55:01 -07:00
parent d47d07d62f
commit 8a4b0dd0a5

View File

@ -75,7 +75,7 @@ fi
# configure unattended upgrades with automatic reboots
DEBIAN_FRONTEND=noninteractive apt-get -y install unattended-upgrades apt-listchanges
# /etc/apt/apt.conf.d/10periodic is part of update-notifier-common, on Ubuntu only
if [[ -f /etc/apt/apt.conf.d/10periodic ]]; thenl
if [[ -f /etc/apt/apt.conf.d/10periodic ]]; then
sed -i 's|^APT::Periodic::Update-Package-Lists.*|APT::Periodic::Update-Package-Lists "1";|g' /etc/apt/apt.conf.d/10periodic
sed -i 's|^APT::Periodic::Download-Upgradeable-Packages.*|APT::Periodic::Download-Upgradeable-Packages "1";|g' /etc/apt/apt.conf.d/10periodic
sed -i 's|^APT::Periodic::AutocleanInterval.*|APT::Periodic::AutocleanInterval "7";|g' /etc/apt/apt.conf.d/10periodic