From d84c18ecac88b444ca300719923db79c9d757639 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 4 May 2024 12:50:20 +0200 Subject: [PATCH] wip/repos --- cd.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cd.sh b/cd.sh index 3e02202..2144e6f 100644 --- a/cd.sh +++ b/cd.sh @@ -5,6 +5,7 @@ CD_DEFAULT_DNS="\ 9.9.9.9 \ " CD_DEFAULT_REPO_ALMA="https://repo.almalinux.org/almalinux" +CD_DEFAULT_REPO_ALPINE="https://dl-cdn.alpinelinux.org/alpine" CD_DEFAULT_REPO_DEBIAN="https://deb.debian.org/debian" CD_PYTHON_MODULES="\ @@ -214,12 +215,11 @@ local file cd_cat "${file}" ;; "${CD_OS_ALPINE}") - file="/etc/yum.repos.d/almalinux.repo" - cd_sed "${file}" \ - "|^mirrorlist|# mirrorlist|" \ - "|${CD_DEFAULT_REPO_ALMA}|${CD_OS_REPO}|" \ - "|^# baseurl|baseurl|" - cd_cat "${file}" + file="/etc/apk/repositories" + cd_write "${file}" "\ +${CD_OS_REPO}/v${CD_OS_VERSION}/main +${CD_OS_REPO}/v${CD_OS_VERSION}/community +" ;; "${CD_OS_DEBIAN}") file="/etc/apt/sources.list"