This commit is contained in:
Marc Beninca 2024-08-25 21:13:49 +02:00
parent 0f0bcf51db
commit 1d99abf92a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -31,40 +31,6 @@
[ -n "${SPCD_URL_UBUNTU}" ] || [ -n "${SPCD_URL_UBUNTU}" ] ||
SPCD_URL_UBUNTU="https://ubuntu.mirrors.ovh.net" SPCD_URL_UBUNTU="https://ubuntu.mirrors.ovh.net"
# ╭───────╮
# │ steps │
# ╰───────╯
spcd_main() {
# env
spcd_set_environment_variables
spcd_list_working_directory
# pkg
spcd_set_packages_repositories
spcd_set_packages_configuration
#
spcd_set_https_verification_off
spcd_set_dns_resolving
spcd_update_packages_catalog
spcd_install_packages_tools
# ca
spcd_install_ca_certificates
spcd_write_ca_certificates
spcd_update_ca_certificates
# pkg
spcd_set_https_verification_on
spcd_update_packages_catalog
spcd_upgrade_packages
spcd_install_dos2unix
spcd_install_git
# python
spcd_install_python
spcd_install_python_modules
spcd_install_packages
spcd_write_python_module
spcd_switch_to_python
}
# ╭───────┬─────╮ # ╭───────┬─────╮
# │ steps │ env │ # │ steps │ env │
# ╰───────┴─────╯ # ╰───────┴─────╯
@ -1249,8 +1215,38 @@ spcd_step_wipe() {
"SPCD_STEP_${SPCD_STEP_LEVEL}_LABEL" "SPCD_STEP_${SPCD_STEP_LEVEL}_LABEL"
} }
# ╭──────────╮ # ╭──────╮
# │ internal │ # │ main │
# ╰──────────╯ # ╰──────╯
spcd_main() {
# env
spcd_set_environment_variables
spcd_list_working_directory
# pkg
spcd_set_packages_repositories
spcd_set_packages_configuration
#
spcd_set_https_verification_off
spcd_set_dns_resolving
spcd_update_packages_catalog
spcd_install_packages_tools
# ca
spcd_install_ca_certificates
spcd_write_ca_certificates
spcd_update_ca_certificates
# pkg
spcd_set_https_verification_on
spcd_update_packages_catalog
spcd_upgrade_packages
spcd_install_dos2unix
spcd_install_git
# python
spcd_install_python
spcd_install_python_modules
spcd_install_packages
spcd_write_python_module
spcd_switch_to_python
}
spcd_main spcd_main