detect cd_os_version
This commit is contained in:
parent
c6846165aa
commit
62690422f5
1 changed files with 9 additions and 3 deletions
12
cd.sh
12
cd.sh
|
@ -39,8 +39,14 @@ local variable
|
|||
cd_step "Set environment variables"
|
||||
#
|
||||
case "$(cd_grep_os ID)" in
|
||||
"debian") CD_OS_ID="${CD_OS_DEBIAN}" ;;
|
||||
"almalinux") CD_OS_ID="${CD_OS_ALMA}" ;;
|
||||
"debian")
|
||||
CD_OS_ID="${CD_OS_DEBIAN}"
|
||||
CD_OS_VERSION="$(cd_grep_os VERSION_CODENAME)"
|
||||
;;
|
||||
"almalinux")
|
||||
CD_OS_ID="${CD_OS_ALMA}"
|
||||
CD_OS_VERSION="$(cd_grep_os VERSION_ID)"
|
||||
;;
|
||||
esac
|
||||
#
|
||||
CD_CA_PACKAGE="ca-certificates"
|
||||
|
@ -60,7 +66,7 @@ local variable
|
|||
;;
|
||||
"${CD_OS_ALMA}")
|
||||
case "${CD_OS_VERSION}" in
|
||||
"8"|"9") cd_nop ;;
|
||||
"8."*|"9."*) cd_nop ;;
|
||||
*) cd_error_os "CD_OS_VERSION" ;;
|
||||
esac
|
||||
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
|
||||
|
|
Loading…
Reference in a new issue