Merge "Improve the net_resolv_pre_kube function in network.sh"

This commit is contained in:
Zuul 2018-03-09 06:44:36 +00:00 committed by Gerrit Code Review
commit e4f22b14f3
1 changed files with 1 additions and 2 deletions

View File

@ -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
}