Avoid unattended security upgrades from stable if running oldstable

This commit is contained in:
Jerome Charaoui 2015-05-11 09:55:26 -04:00
parent ae4771b452
commit 87bfb868d7

View file

@ -11,8 +11,8 @@ Unattended-Upgrade::Allowed-Origins {
"${distro_id}:squeeze-lts";
<% else -%>
Unattended-Upgrade::Origins-Pattern {
"o=Debian,l=Debian-Security";
"o=Debian,a=${distro_id}-lts";
"origin=Debian,archive=<%= scope.lookupvar('::apt::release') %>,label=Debian-Security";
"origin=Debian,archive=${distro_codename}-lts";
<% end -%>
};