cd_write_ca
This commit is contained in:
parent
3de8ea1b23
commit
292d5e0c9e
1 changed files with 11 additions and 3 deletions
14
cd.sh
14
cd.sh
|
@ -18,7 +18,7 @@ cd_main () {
|
||||||
cd_update_packages_catalog
|
cd_update_packages_catalog
|
||||||
cd_install_packages_tools
|
cd_install_packages_tools
|
||||||
cd_install_ca
|
cd_install_ca
|
||||||
cd_copy_ca
|
cd_write_ca
|
||||||
cd_update_ca
|
cd_update_ca
|
||||||
cd_set_https_verification_on
|
cd_set_https_verification_on
|
||||||
cd_update_packages_catalog
|
cd_update_packages_catalog
|
||||||
|
@ -191,15 +191,23 @@ cd_install_ca () {
|
||||||
cd_install_package "${CD_CA_PACKAGE}"
|
cd_install_package "${CD_CA_PACKAGE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_copy_ca () {
|
cd_write_ca () {
|
||||||
|
local index
|
||||||
local target
|
local target
|
||||||
|
local text
|
||||||
cd_step "Copy CA"
|
cd_step "Copy CA"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") target="/usr/local/share/ca-certificates" ;;
|
"debian") target="/usr/local/share/ca-certificates" ;;
|
||||||
"alma") target="/etc/pki/ca-trust/source/anchors" ;;
|
"alma") target="/etc/pki/ca-trust/source/anchors" ;;
|
||||||
*) cd_error_os "cd_copy_ca" ;;
|
*) cd_error_os "cd_copy_ca" ;;
|
||||||
esac
|
esac
|
||||||
echo "TODO"
|
index=1
|
||||||
|
eval "text=\${CD_CA_${index}}"
|
||||||
|
while [ "${text}" ] ; do
|
||||||
|
cd_write "${target}/${index}.crt" "${text}"
|
||||||
|
index=$((index+1))
|
||||||
|
eval "text=\${CD_CA_${index}}"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_update_ca () {
|
cd_update_ca () {
|
||||||
|
|
Loading…
Reference in a new issue