From 8c5b6a9817ae053ac9d2313fd000ae7bc1c0bd02 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 6 Nov 2021 09:28:51 -0300 Subject: Fix: apt: security.debian config for newer debian releases --- templates/apt/Debian.sources.list.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/apt/Debian.sources.list.erb b/templates/apt/Debian.sources.list.erb index e8c1d80..8d0fc76 100644 --- a/templates/apt/Debian.sources.list.erb +++ b/templates/apt/Debian.sources.list.erb @@ -12,8 +12,13 @@ deb <%= @mirror %>/debian/ <%= scope.lookupvar('::lsbdistcodename') %>-updates m deb-src https://deb.debian.org/debian/ <%= scope.lookupvar('::lsbdistcodename') %>-updates main contrib non-free # security +<% if scope.lookupvar('::lsbdistcodename') == 'stretch' or scope.lookupvar('::lsbdistcodename') == 'buster' -%> deb http://security.debian.org/ <%= scope.lookupvar('::lsbdistcodename') %>/updates main contrib non-free deb-src http://security.debian.org/ <%= scope.lookupvar('::lsbdistcodename') %>/updates main contrib non-free +<% else -%> +deb http://security.debian.org/debian-security <%= scope.lookupvar('::lsbdistcodename') %>-security main contrib non-free +deb-src http://security.debian.org/debian-security <%= scope.lookupvar('::lsbdistcodename') %>-security main contrib non-free +<% end -%> # backports deb <%= @mirror %>/debian/ <%= scope.lookupvar('::lsbdistcodename') %>-backports main contrib non-free -- cgit v1.2.3