diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 506b610..efa6438 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -557,70 +557,6 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")" esac spcd_split spcd_os_printenv "SPCD_PM" - # specific - case "${SPCD_OS_ID}" in - "${SPCD_OS_ALMA}") - SPCD_URL_DEFAULT="https://repo.almalinux.org/almalinux" - ;; - "${SPCD_OS_ALPINE}") - SPCD_URL_DEFAULT="https://dl-cdn.alpinelinux.org/alpine" - ;; - "${SPCD_OS_ARCH}") - SPCD_URL_DEFAULT="https://geo.mirror.pkgbuild.com" - ;; - "${SPCD_OS_DEBIAN}") - SPCD_URL_DEFAULT="http://deb.debian.org/debian" - ;; - "${SPCD_OS_FEDORA}") - SPCD_URL_DEFAULT="http://download.example/pub/fedora/linux/releases" - ;; - "${SPCD_OS_OPENSUSE}") - SPCD_URL_DEFAULT="http://download.opensuse.org" - ;; - "${SPCD_OS_ROCKY}") - SPCD_URL_DEFAULT="http://dl.rockylinux.org/\$contentdir" - ;; - "${SPCD_OS_UBUNTU}") - SPCD_URL_DEFAULT="http://archive.ubuntu.com/ubuntu" - ;; - *) ;; - esac - SPCD_URL_CHOSEN="${SPCD_URL_DEFAULT}" - case "${SPCD_OS_ID}" in - "${SPCD_OS_ALMA}") - [ -n "${SPCD_URL_ALMA}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ALMA}" - ;; - "${SPCD_OS_ALPINE}") - [ -n "${SPCD_URL_ALPINE}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ALPINE}" - ;; - "${SPCD_OS_ARCH}") - [ -n "${SPCD_URL_ARCH}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ARCH}" - ;; - "${SPCD_OS_DEBIAN}") - [ -n "${SPCD_URL_DEBIAN}" ] && SPCD_URL_CHOSEN="${SPCD_URL_DEBIAN}" || - SPCD_URL_CHOSEN="https://deb.debian.org/debian" - ;; - "${SPCD_OS_FEDORA}") - [ -n "${SPCD_URL_FEDORA}" ] && SPCD_URL_CHOSEN="${SPCD_URL_FEDORA}" || - SPCD_URL_CHOSEN="https://rpmfind.net/linux/fedora/linux/releases" - ;; - "${SPCD_OS_OPENSUSE}") - [ -n "${SPCD_URL_OPENSUSE}" ] && - SPCD_URL_CHOSEN="${SPCD_URL_OPENSUSE}" || - SPCD_URL_CHOSEN="https://download.opensuse.org" - ;; - "${SPCD_OS_ROCKY}") - [ -n "${SPCD_URL_ROCKY}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ROCKY}" || - SPCD_URL_CHOSEN="https://dl.rockylinux.org/\$contentdir" - ;; - "${SPCD_OS_UBUNTU}") - [ -n "${SPCD_URL_UBUNTU}" ] && SPCD_URL_CHOSEN="${SPCD_URL_UBUNTU}" || - SPCD_URL_CHOSEN="https://ubuntu.mirrors.ovh.net/ubuntu" - ;; - *) ;; - esac - spcd_split - spcd_os_printenv "SPCD_URL_DEFAULT" "SPCD_URL_CHOSEN" # set python alias SPCD_PYTHON_ALIAS="python3" spcd_split