Skip to content

Commit

Permalink
Update resolv.conf to use 8.8.8.8
Browse files Browse the repository at this point in the history
Signed-off-by: Maria Shaldibina <mshaldibina@pivotal.io>
  • Loading branch information
krishicks authored and mariash committed Sep 26, 2014
1 parent a8629d0 commit d984f8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/update-resolv.conf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -ex

echo 'nameserver 8.8.8.8' >> /etc/resolvconf/resolv.conf.d/head
resolvconf -u
1 change: 1 addition & 0 deletions templates/virtualbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"type": "shell",
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -S -E {{ .Path }}",
"scripts": [
"scripts/update-resolv.conf.sh",
"scripts/quiet-tty-warning.sh",
"scripts/apt-update.sh",
"scripts/update-trusty-kernel.sh",
Expand Down
1 change: 1 addition & 0 deletions templates/vmware.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"type": "shell",
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-resolv.conf.sh",
"scripts/quiet-tty-warning.sh",
"scripts/apt-update.sh",
"scripts/update-trusty-kernel.sh",
Expand Down

0 comments on commit d984f8c

Please sign in to comment.