summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-11 09:55:26 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-11 09:55:26 -0400
commit87bfb868d7625100086a26a81743f5adbabbb988 (patch)
tree8f6e211ba8078131901fbee1c985e0c96145ffcf
parentae4771b452332fdec335891cfed2c200b566d2f3 (diff)
Avoid unattended security upgrades from stable if running oldstable
-rw-r--r--templates/50unattended-upgrades.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/50unattended-upgrades.erb b/templates/50unattended-upgrades.erb
index 73ffa60..23c5c89 100644
--- a/templates/50unattended-upgrades.erb
+++ b/templates/50unattended-upgrades.erb
@@ -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 -%>
};