From 53923ea1f012923618b4271d2314991394f976bc Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 4 May 2024 19:33:07 +0200 Subject: [PATCH] wip/url --- cd.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cd.sh b/cd.sh index fc11d76..f37ace3 100644 --- a/cd.sh +++ b/cd.sh @@ -162,6 +162,16 @@ Dir::Etc::SourceParts \"\"; cd_echo "CD_CMD_CLEAN" "CD_CMD_INSTALL" "CD_CMD_UPDATE" "CD_CMD_UPGRADE" cd_split cd_echo "CD_PM_CONF_PATH" "CD_PM_HTTPS_PATH" + # specific + case "${CD_OS_ID}" in + "${CD_OS_ALMA}") CD_PM_URL="https://repo.almalinux.org/almalinux" ;; + "${CD_OS_ALPINE}") CD_PM_URL="https://dl-cdn.alpinelinux.org/alpine" ;; + "${CD_OS_DEBIAN}") CD_PM_URL="http://deb.debian.org/debian" ;; + "${CD_OS_ROCKY}") CD_PM_URL="http://dl.rockylinux.org/\$contentdir" ;; + "${CD_OS_UBUNTU}") CD_PM_URL="http://archive.ubuntu.com/ubuntu" ;; + esac + cd_split + cd_echo "CD_PM_URL" # TODO python case "${CD_OS_ID}" in "${CD_OS_ALMA}")