Skip to content

Instantly share code, notes, and snippets.

@maltejk
Last active December 23, 2016 14:22
Show Gist options
  • Save maltejk/36467dcff3a6577f665944b8276bcaf3 to your computer and use it in GitHub Desktop.
Save maltejk/36467dcff3a6577f665944b8276bcaf3 to your computer and use it in GitHub Desktop.
Unattended-Upgrade::Origins-Pattern {
// Codename based matching:
// This will follow the migration of a release through different
// archives (e.g. from testing to stable and later oldstable).
"o=Debian,n=${distro_codename}";
// "o=Debian,n=${distro_codename}-updates";
// "o=Debian,n=${distro_codename}-proposed-updates";
"o=Debian,codename=${distro_codename},label=Debian-Security";
};
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
Unattended-Upgrade::MinimalSteps "true";
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "user@example.com"
Unattended-Upgrade::Mail "root";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment