Fix error in 50unattended-upgrades.erb syntax, remove lsb fact

This commit is contained in:
Jerome Charaoui 2015-05-06 13:31:07 -04:00
parent 74db9ebf28
commit f1a53bcfa7

View file

@ -5,8 +5,7 @@ Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}-security";
"${distro_id}:${distro_codename}-updates";
"${distro_id}:${distro_codename}-backports";
<% else -%>
<% if scope.lookupvar('::lsbdistcodename') == 'squeeze' -%>
<% elsif scope.lookupvar('::operatingsystem') == 'Debian' and scope.lookupvar('::operatingsystemmajrelease') == 6 -%>
"${distro-id} ${distro-codename}-security";
"${distro-id} ${distro-codename}-lts";
<% else -%>