debian
This commit is contained in:
parent
aaa530295e
commit
04f64f68a8
1 changed files with 7 additions and 7 deletions
14
sh/debian.sh
14
sh/debian.sh
|
@ -1,4 +1,4 @@
|
|||
DEBIAN_CODENAME="$(
|
||||
SH_DEBIAN_CODENAME="$(
|
||||
grep "VERSION_CODENAME" "/etc/os-release" |
|
||||
cut --delimiter "=" --fields "2"
|
||||
)"
|
||||
|
@ -23,11 +23,11 @@ Dpkg::Progress True;
|
|||
}
|
||||
|
||||
sh_apt_install_backports() {
|
||||
sh_apt_install_target "${DEBIAN_CODENAME}-backports" "${@}"
|
||||
sh_apt_install_target "${SH_DEBIAN_CODENAME}-backports" "${@}"
|
||||
}
|
||||
|
||||
sh_apt_install_release() {
|
||||
sh_apt_install_target "${DEBIAN_CODENAME}" "${@}"
|
||||
sh_apt_install_target "${SH_DEBIAN_CODENAME}" "${@}"
|
||||
}
|
||||
|
||||
sh_apt_install_target() {
|
||||
|
@ -49,13 +49,13 @@ sh_apt_install_target() {
|
|||
sh_apt_sources_write() {
|
||||
printf "%s" "\
|
||||
deb https://deb.debian.org/debian \
|
||||
${DEBIAN_CODENAME} main non-free-firmware contrib non-free
|
||||
${SH_DEBIAN_CODENAME} main non-free-firmware contrib non-free
|
||||
deb https://deb.debian.org/debian \
|
||||
${DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free
|
||||
${SH_DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free
|
||||
deb https://deb.debian.org/debian \
|
||||
${DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free
|
||||
${SH_DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free
|
||||
deb https://deb.debian.org/debian-security \
|
||||
${DEBIAN_CODENAME}-security main non-free-firmware contrib non-free
|
||||
${SH_DEBIAN_CODENAME}-security main non-free-firmware contrib non-free
|
||||
" >"/etc/apt/sources.list"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue