'Backports' Debian repo not appended to pre-existing sources file instead of creating a new one

This commit is contained in:
2025-07-21 13:33:00 -04:00
parent 62861d8c7b
commit 33435e5903

View File

@@ -115,7 +115,9 @@ Pin: release n=${UBUNTU_VERSION_CODENAME}-backports
Pin-Priority: -1 Pin-Priority: -1
EOF EOF
elif [[ "${ID}" == 'debian' ]]; then 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 Enabled: yes
Types: deb deb-src Types: deb deb-src
URIs: http://deb.debian.org/debian/ URIs: http://deb.debian.org/debian/