mirror of https://github.com/apache/jclouds.git
Merge pull request #806 from dkoper/master
adding grep to confirm expected nslookup output
This commit is contained in:
commit
7f53d74250
|
@ -118,7 +118,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
|
@ -118,7 +118,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
|
@ -118,7 +118,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
|
@ -117,7 +117,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
|
@ -118,7 +118,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
|
@ -118,7 +118,7 @@ function ensure_hostname_in_hosts() {
|
||||||
|
|
||||||
# download locations for many services are at public dns
|
# download locations for many services are at public dns
|
||||||
function ensure_can_resolve_public_dns() {
|
function ensure_can_resolve_public_dns() {
|
||||||
nslookup yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
nslookup yahoo.com | grep yahoo.com > /dev/null || echo nameserver 208.67.222.222 >> /etc/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupPublicCurl() {
|
function setupPublicCurl() {
|
||||||
|
|
Loading…
Reference in New Issue