cd_set_dns_resolving

This commit is contained in:
Marc Beninca 2024-06-08 17:20:13 +02:00
parent 68c4444367
commit d2f060b6a1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -454,14 +454,13 @@ cd_set_https_verification_off () {
}
cd_set_dns_resolving () {
local server
local text=""
cd_step "Set DNS resolving"
for server in ${CD_DNS} ; do
text="${text}nameserver ${server}
for cd_set_dns_resolving__server in ${CD_DNS} ; do
cd_set_dns_resolving__text="${cd_set_dns_resolving__text}\
nameserver ${cd_set_dns_resolving__server}
"
done
cd_write "${CD_DNS_FILE}" "${text}"
cd_write "${CD_DNS_FILE}" "${cd_set_dns_resolving__text}"
}
cd_update_packages_catalog () {