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}")