From 51566a57b0e19b8f4ec229e43f520850fb97233b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 03:17:36 +0200 Subject: [PATCH] ca --- spcd/bootstrap.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 93709b0..dcef839 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1046,13 +1046,13 @@ spcd_packages_install_tools() { # │ steps │ ca │ # ╰───────┴────╯ -spcd_install_ca_certificates() { - spcd_step "Install CA" +spcd_ca_install_package() { + spcd_step "Install package" spcd_install_package "${SPCD_PKG_CA}" } -spcd_write_ca_certificates() { - spcd_step "Write CA certificates" +spcd_ca_write_certificates() { + spcd_step "Write certificates" spcd_os_mkdir "${SPCD_CA_ROOT}" while true; do spcd_wcc__index=$((spcd_wcc__index + 1)) @@ -1065,8 +1065,8 @@ spcd_write_ca_certificates() { done } -spcd_update_ca_certificates() { - spcd_step "Update CA certificates" +spcd_ca_update_certificates() { + spcd_step "Update certificates" ${SPCD_CMD_CA} } @@ -1265,9 +1265,11 @@ spcd_main() { spcd_packages_install_tools spcd_step_out # ca - spcd_install_ca_certificates - spcd_write_ca_certificates - spcd_update_ca_certificates + spcd_step_in "CA" + spcd_ca_install_package + spcd_ca_write_certificates + spcd_ca_update_certificates + spcd_step_out # packages spcd_step_in "Packages" spcd_packages_verify_https