From 099678c6b4fd176d3232984e634d6311f7c83494 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 22 Nov 2013 17:11:19 +0100 Subject: Fix unattended-upgrades's configuration. ${distro_codename} doesn't work properly there, so we put stable and/or oldstable instead. --- .../common/files/etc/apt/apt.conf.d/50unattended-upgrades | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'roles') diff --git a/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades b/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades index 8d30e3e..5a58095 100644 --- a/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades +++ b/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades @@ -4,10 +4,19 @@ Unattended-Upgrade::Origins-Pattern { // Note that this will silently match a different release after // migration to the specified archive (e.g. testing becomes the // new stable). - "o=${distro_id},a=${distro_codename}"; -// "o=${distro_id},a=${distro_codename}-updates"; + // XXX: Sadly as of Wheezy, unattended-upgrades doesn't match + // $distro_codename against (old)stable. Hence since packages + // that are candidates for upgrade show up with a=(old)stable, + // it is not enough to specifiy a=$distro_codename here. + // Instead, we list both oldstable and stable; the useless one + // is harmless and is being ignored anyway, as it is not in a + // proper sources.list. + "o=${distro_id},a=oldstable"; + "o=${distro_id},a=stable"; +// "o=${distro_id},a=stable-updates"; // "o=${distro_id},a=proposed-updates"; - "o=${distro_id},a=${distro_codename},l=Debian-Security"; + "o=${distro_id},a=oldstable,l=Debian-Security"; + "o=${distro_id},a=stable,l=Debian-Security"; }; // List of packages to not update -- cgit v1.2.3