cd_ca_root
This commit is contained in:
parent
5787bf6fca
commit
38d2138950
1 changed files with 4 additions and 10 deletions
14
cd.sh
14
cd.sh
|
@ -42,10 +42,12 @@ cd_set_environment () {
|
||||||
#
|
#
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian")
|
"debian")
|
||||||
|
CD_CA_ROOT="/usr/local/share/ca-certificates"
|
||||||
CD_PYTHON_PACKAGE="python3"
|
CD_PYTHON_PACKAGE="python3"
|
||||||
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
||||||
;;
|
;;
|
||||||
"alma")
|
"alma")
|
||||||
|
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
|
||||||
case "${CD_OS_VERSION}" in
|
case "${CD_OS_VERSION}" in
|
||||||
"8"|"9")
|
"8"|"9")
|
||||||
CD_PYTHON_PACKAGE="python3.11"
|
CD_PYTHON_PACKAGE="python3.11"
|
||||||
|
@ -153,21 +155,13 @@ Dir::Etc::SourceParts \"\";
|
||||||
|
|
||||||
cd_write_ca_certificates () {
|
cd_write_ca_certificates () {
|
||||||
local index
|
local index
|
||||||
local target
|
|
||||||
local text
|
local text
|
||||||
cd_step "Copy CA"
|
cd_step "Copy CA"
|
||||||
case "${CD_OS_NAME}" in
|
cd_mkdir "${CD_CA_ROOT}"
|
||||||
"debian")
|
|
||||||
target="/usr/local/share/ca-certificates"
|
|
||||||
cd_mkdir "${target}"
|
|
||||||
;;
|
|
||||||
"alma") target="/etc/pki/ca-trust/source/anchors" ;;
|
|
||||||
*) cd_error_os "cd_copy_ca" ;;
|
|
||||||
esac
|
|
||||||
index=1
|
index=1
|
||||||
eval "text=\${CD_CA_${index}}"
|
eval "text=\${CD_CA_${index}}"
|
||||||
while [ "${text}" ] ; do
|
while [ "${text}" ] ; do
|
||||||
cd_write "${target}/${index}.crt" "${text}"
|
cd_write "${CD_CA_ROOT}/${index}.crt" "${text}"
|
||||||
CD_CA=$((CD_CA+1))
|
CD_CA=$((CD_CA+1))
|
||||||
index=$((index+1))
|
index=$((index+1))
|
||||||
eval "text=\${CD_CA_${index}}"
|
eval "text=\${CD_CA_${index}}"
|
||||||
|
|
Loading…
Reference in a new issue