Merge "Improve the net_resolv_pre_kube function in network.sh"
This commit is contained in:
commit
e4f22b14f3
|
@ -26,8 +26,7 @@ function net_default_host_ip {
|
|||
|
||||
function net_resolv_pre_kube {
|
||||
sudo cp -f /etc/resolv.conf /etc/resolv-pre-kube.conf
|
||||
sudo rm -f /etc/resolv.conf
|
||||
cat << EOF | sudo tee /etc/resolv.conf
|
||||
cat << EOF | sudo tee -a /etc/resolv.conf
|
||||
nameserver ${UPSTREAM_DNS}
|
||||
EOF
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue