//
// Ensure things automatic upgrades are on
//
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

//
// Install updates from Bytemark and the vendor
//
Unattended-Upgrade::Origins-Pattern {
   "o=Bytemark Hosting";
   "o=${distro_id},n=${distro_codename}";
   "o=${distro_id},n=${distro_codename}-updates";
   "o=${distro_id},n=${distro_codename}-lts";
   "o=${distro_id},n=${distro_codename},l=${distro_id}-Security";
};


//
// Fix broken package installs
//
Unattended-Upgrade::AutoFixInterruptedDpkg "true";

//
// Only send an email on error.
//
Unattended-Upgrade::Mail "root";
Unattended-Upgrade::MailOnlyOnError "true";

//
// Don't remove things.
//
Unattended-Upgrade::Remove-Unused-Dependencies "false";

