This commit is contained in:
Marc Beninca 2024-06-24 08:30:54 +02:00
parent dfef8ba5a6
commit b1579d654f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

21
pidd.sh
View file

@ -546,20 +546,17 @@ pidd_install_ca_certificates () {
pidd_write_ca_certificates () {
pidd_step "Write CA certificates"
pidd_mkdir "${PIDD_CA_ROOT}"
pidd_write_ca_certificates__index=1
eval "pidd_write_ca_certificates__text=\
\"\${PIDD_CA_${pidd_write_ca_certificates__index}}\""
while [ -n "${pidd_write_ca_certificates__text}" ] ; do
pidd_write_ca_certificates__path="\
${PIDD_CA_ROOT}/${pidd_write_ca_certificates__index}.crt"
pidd_wcc__index=1
eval "pidd_wcc__text=\"\${PIDD_CA_${pidd_wcc__index}}\""
while [ -n "${pidd_wcc__text}" ] ; do
pidd_wcc__path="${PIDD_CA_ROOT}/${pidd_wcc__index}.crt"
pidd_split
pidd_write \
"${pidd_write_ca_certificates__path}" \
"${pidd_write_ca_certificates__text}"
pidd_openssl "${pidd_write_ca_certificates__path}"
pidd_write_ca_certificates__index=$((pidd_write_ca_certificates__index+1))
eval "pidd_write_ca_certificates__text=\
\"\${PIDD_CA_${pidd_write_ca_certificates__index}}\""
"${pidd_wcc__path}" \
"${pidd_wcc__text}"
pidd_openssl "${pidd_wcc__path}"
pidd_wcc__index=$((pidd_wcc__index+1))
eval "pidd_wcc__text=\"\${PIDD_CA_${pidd_wcc__index}}\""
done
}