wip/versions

This commit is contained in:
Marc Beninca 2024-05-04 18:27:32 +02:00
parent 0c17f026ea
commit 0470fa8de8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

34
cd.sh
View file

@ -66,6 +66,32 @@ cd_set_environment_variables () {
| sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|") | sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|")
;; ;;
esac esac
case "${CD_OS_ID}" in
"${CD_OS_ALMA}"|"${CD_OS_ROCKY}")
case "${CD_OS_VERSION}" in
"8"|"9") ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
;;
"${CD_OS_ALPINE}")
case "${CD_OS_VERSION}" in
"3.18"|"3.19") ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
;;
"${CD_OS_DEBIAN}")
case "${CD_OS_VERSION}" in
"bookworm"|"bullseye") ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
;;
"${CD_OS_UBUNTU}")
case "${CD_OS_VERSION}" in
"noble"|"mantic") ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
;;
esac
cd_echo "CD_OS_ID" "CD_OS_VERSION" cd_echo "CD_OS_ID" "CD_OS_VERSION"
# universal # universal
CD_DNS_FILE="/etc/resolv.conf" CD_DNS_FILE="/etc/resolv.conf"
@ -141,10 +167,6 @@ Dir::Etc::SourceParts \"\";
"${CD_OS_ALMA}") "${CD_OS_ALMA}")
CD_OS_REPO="${CD_DEFAULT_REPO_ALMA}" CD_OS_REPO="${CD_DEFAULT_REPO_ALMA}"
[ "${CD_REPO_ALMA}" ] && CD_OS_REPO="${CD_REPO_ALMA}" [ "${CD_REPO_ALMA}" ] && CD_OS_REPO="${CD_REPO_ALMA}"
case "${CD_OS_VERSION}" in
"8"|"9") ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
CD_PKG_PKG="" CD_PKG_PKG=""
CD_PYTHON_COMMAND="python3.11" CD_PYTHON_COMMAND="python3.11"
CD_PYTHON_PACKAGE="python3.11" CD_PYTHON_PACKAGE="python3.11"
@ -153,10 +175,6 @@ Dir::Etc::SourceParts \"\";
"${CD_OS_ALPINE}") "${CD_OS_ALPINE}")
CD_OS_REPO="${CD_DEFAULT_REPO_ALPINE}" CD_OS_REPO="${CD_DEFAULT_REPO_ALPINE}"
[ "${CD_REPO_ALPINE}" ] && CD_OS_REPO="${CD_REPO_ALPINE}" [ "${CD_REPO_ALPINE}" ] && CD_OS_REPO="${CD_REPO_ALPINE}"
case "${CD_OS_VERSION}" in
"3.18"|"3.19") ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
CD_PKG_PKG="" CD_PKG_PKG=""
CD_PYTHON_COMMAND="python3.11" CD_PYTHON_COMMAND="python3.11"
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"