cd_set_dns_resolving
This commit is contained in:
parent
68c4444367
commit
d2f060b6a1
1 changed files with 4 additions and 5 deletions
9
cd.sh
9
cd.sh
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue