repos/fixes

This commit is contained in:
Marc Beninca 2024-08-27 15:43:19 +02:00
parent e8cd0ca9b2
commit 57543f20d5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -834,23 +834,20 @@ spcd_step__packages_set_repositories() {
esac esac
spcd_os_sed "${spcd_spr__file}" \ spcd_os_sed "${spcd_spr__file}" \
"|^mirrorlist|# mirrorlist|" \ "|^mirrorlist|# mirrorlist|" \
"|${SPCD_URL_DEFAULT}|${SPCD_URL_CHOSEN}|" \
"|^# baseurl|baseurl|" "|^# baseurl|baseurl|"
;; ;;
"${SPCD_OS_ALPINE}") "${SPCD_OS_ALPINE}")
spcd_spr__file="/etc/apk/repositories" spcd_os_write "/etc/apk/repositories" "\
spcd_os_write "${spcd_spr__file}" "\ ${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/main
${SPCD_URL_CHOSEN}/v${SPCD_OS_VERSION}/main ${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/community
${SPCD_URL_CHOSEN}/v${SPCD_OS_VERSION}/community
" "
;; ;;
"${SPCD_OS_DEBIAN}") "${SPCD_OS_DEBIAN}")
spcd_spr__file="/etc/apt/sources.list" spcd_os_write "/etc/apt/sources.list" "\
spcd_os_write "${spcd_spr__file}" "\ deb ${SPCD_URL_DEBIAN} ${SPCD_OS_VERSION} main
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION} main deb ${SPCD_URL_DEBIAN} ${SPCD_OS_VERSION}-backports main
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION}-backports main deb ${SPCD_URL_DEBIAN} ${SPCD_OS_VERSION}-updates main
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION}-updates main deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
deb ${SPCD_URL_CHOSEN}-security ${SPCD_OS_VERSION}-security main
" "
;; ;;
"${SPCD_OS_OPENSUSE}") "${SPCD_OS_OPENSUSE}")
@ -863,7 +860,7 @@ deb ${SPCD_URL_CHOSEN}-security ${SPCD_OS_VERSION}-security main
"update" \ "update" \
"openh264"; do "openh264"; do
spcd_os_sed "/etc/zypp/repos.d/repo-${spcd_spr__file}.repo" \ spcd_os_sed "/etc/zypp/repos.d/repo-${spcd_spr__file}.repo" \
"|${SPCD_URL_DEFAULT}|${SPCD_URL_CHOSEN}|" "|http://download.opensuse.org|${SPCD_URL_OPENSUSE}|"
done done
;; ;;
"${SPCD_OS_ROCKY}") "${SPCD_OS_ROCKY}")
@ -874,16 +871,15 @@ deb ${SPCD_URL_CHOSEN}-security ${SPCD_OS_VERSION}-security main
esac esac
spcd_os_sed "${spcd_spr__file}" \ spcd_os_sed "${spcd_spr__file}" \
"|^mirrorlist|# mirrorlist|" \ "|^mirrorlist|# mirrorlist|" \
"|${SPCD_URL_DEFAULT}|${SPCD_URL_CHOSEN}|" \ "|http://dl.rockylinux.org/\$contentdir|${SPCD_URL_ROCKY}|" \
"|^#baseurl|baseurl|" "|^#baseurl|baseurl|"
;; ;;
"${SPCD_OS_UBUNTU}") "${SPCD_OS_UBUNTU}")
spcd_spr__file="/etc/apt/sources.list" spcd_os_write "/etc/apt/sources.list" "\
spcd_os_write "${spcd_spr__file}" "\ deb ${SPCD_URL_UBUNTU} ${SPCD_OS_VERSION} main universe
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION} main universe deb ${SPCD_URL_UBUNTU} ${SPCD_OS_VERSION}-backports main universe
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION}-backports main universe deb ${SPCD_URL_UBUNTU} ${SPCD_OS_VERSION}-updates main universe
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION}-updates main universe deb ${SPCD_URL_UBUNTU} ${SPCD_OS_VERSION}-security main universe
deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION}-security main universe
" "
;; ;;
*) ;; *) ;;