From 33435e5903698d49e240164b4e99413fa7c7762e Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Mon, 21 Jul 2025 13:33:00 -0400 Subject: [PATCH] 'Backports' Debian repo not appended to pre-existing sources file instead of creating a new one --- post-inst.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/post-inst.sh b/post-inst.sh index 856643f..7866ad6 100755 --- a/post-inst.sh +++ b/post-inst.sh @@ -115,7 +115,9 @@ Pin: release n=${UBUNTU_VERSION_CODENAME}-backports Pin-Priority: -1 EOF elif [[ "${ID}" == 'debian' ]]; then - cat << EOF | tee /etc/apt/sources.list.d/backports.sources &> /dev/null + cat << EOF | tee --append /etc/apt/sources.list.d/${VERSION_CODENAME}.sources &> /dev/null + +# ${VERSION_CODENAME^} Backports Enabled: yes Types: deb deb-src URIs: http://deb.debian.org/debian/