This commit is contained in:
Marc Beninca 2024-08-26 01:10:56 +02:00
parent d546eb8377
commit 10e5685bf5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -922,6 +922,23 @@ spcd_install_package() {
fi fi
} }
# ╭───────┬─────╮
# │ steps │ dns │
# ╰───────┴─────╯
spcd_dns() {
spcd_step "DNS"
while true; do
spcd_sdr__index=$((spcd_sdr__index + 1))
eval "spcd_sdr__value=\"\${SPCD_DNS_${spcd_sdr__index}}\""
[ -n "${spcd_sdr__value}" ] || break
spcd_sdr__text="${spcd_sdr__text}\
nameserver ${spcd_sdr__value}
"
done
spcd_os_write "${SPCD_DNS_FILE}" "${spcd_sdr__text}"
}
# ╭───────┬─────╮ # ╭───────┬─────╮
# │ steps │ pkg │ # │ steps │ pkg │
# ╰───────┴─────╯ # ╰───────┴─────╯
@ -1017,19 +1034,6 @@ spcd_set_https_verification_off() {
fi fi
} }
spcd_set_dns_resolving() {
spcd_step "Set DNS resolving"
while true; do
spcd_sdr__index=$((spcd_sdr__index + 1))
eval "spcd_sdr__value=\"\${SPCD_DNS_${spcd_sdr__index}}\""
[ -n "${spcd_sdr__value}" ] || break
spcd_sdr__text="${spcd_sdr__text}\
nameserver ${spcd_sdr__value}
"
done
spcd_os_write "${SPCD_DNS_FILE}" "${spcd_sdr__text}"
}
spcd_update_packages_catalog() { spcd_update_packages_catalog() {
spcd_step "Update packages catalog" spcd_step "Update packages catalog"
${SPCD_PM_UPDATE} ${SPCD_PM_UPDATE}
@ -1252,12 +1256,13 @@ spcd_main() {
spcd_environment_set_variables spcd_environment_set_variables
spcd_environment_list_workspace spcd_environment_list_workspace
spcd_step_out spcd_step_out
# dns
spcd_dns
# pkg # pkg
spcd_set_packages_repositories spcd_set_packages_repositories
spcd_set_packages_configuration spcd_set_packages_configuration
# #
spcd_set_https_verification_off spcd_set_https_verification_off
spcd_set_dns_resolving
spcd_update_packages_catalog spcd_update_packages_catalog
spcd_install_packages_tools spcd_install_packages_tools
# ca # ca