repos/arch,fedora
This commit is contained in:
parent
57543f20d5
commit
99eef56d40
1 changed files with 19 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
||||||
[ -n "${SPCD_URL_ALPINE}" ] ||
|
[ -n "${SPCD_URL_ALPINE}" ] ||
|
||||||
SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine"
|
SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine"
|
||||||
[ -n "${SPCD_URL_ARCH}" ] ||
|
[ -n "${SPCD_URL_ARCH}" ] ||
|
||||||
SPCD_URL_ARCH="https://geo.mirror.pkgbuild.com"
|
SPCD_URL_ARCH="https://geo.mirror.pkgbuild.com/\$repo/os/\$arch"
|
||||||
[ -n "${SPCD_URL_DEBIAN}" ] ||
|
[ -n "${SPCD_URL_DEBIAN}" ] ||
|
||||||
SPCD_URL_DEBIAN="https://deb.debian.org/debian"
|
SPCD_URL_DEBIAN="https://deb.debian.org/debian"
|
||||||
[ -n "${SPCD_URL_EPEL}" ] ||
|
[ -n "${SPCD_URL_EPEL}" ] ||
|
||||||
|
@ -840,6 +840,11 @@ spcd_step__packages_set_repositories() {
|
||||||
spcd_os_write "/etc/apk/repositories" "\
|
spcd_os_write "/etc/apk/repositories" "\
|
||||||
${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/main
|
${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/main
|
||||||
${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/community
|
${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/community
|
||||||
|
"
|
||||||
|
;;
|
||||||
|
"${SPCD_OS_ARCH}")
|
||||||
|
spcd_os_write "/etc/pacman.d/mirrorlist" "\
|
||||||
|
Server = ${SPCD_URL_ARCH}
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
"${SPCD_OS_DEBIAN}")
|
"${SPCD_OS_DEBIAN}")
|
||||||
|
@ -850,6 +855,19 @@ deb ${SPCD_URL_DEBIAN} ${SPCD_OS_VERSION}-updates main
|
||||||
deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
|
"${SPCD_OS_FEDORA}")
|
||||||
|
for spcd_spr__file in \
|
||||||
|
"fedora" \
|
||||||
|
"fedora-updates" \
|
||||||
|
"fedora-updates-testing"; do
|
||||||
|
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
||||||
|
"|^metalink|# metalink|" \
|
||||||
|
"|http://download.example|${SPCD_URL_FEDORA}|" \
|
||||||
|
"|^#baseurl|baseurl|"
|
||||||
|
done
|
||||||
|
spcd_os_sed "/etc/yum.repos.d/fedora-cisco-openh264.repo" \
|
||||||
|
"|^enabled=1|# enabled=0|"
|
||||||
|
;;
|
||||||
"${SPCD_OS_OPENSUSE}")
|
"${SPCD_OS_OPENSUSE}")
|
||||||
for spcd_spr__file in \
|
for spcd_spr__file in \
|
||||||
"backports-update" \
|
"backports-update" \
|
||||||
|
|
Loading…
Reference in a new issue