Permalink
Browse files

Firewall-friendly wan_up

  • Loading branch information...
1 parent 558fd1d commit 314257173a1b2f4003075e21e57eac5ed1c7628a @gerhard gerhard committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 recipes/default.rb
View
@@ -1,5 +1,5 @@
install = (node[:deliver][:action] == "install")
-wan_up = `ping -c 1 -W 1 8.8.8.8`.index(/1 (?:packets )?received/)
+wan_up = `host -W 1 google.com`.index(/has address/)
if install
git node[:deliver][:dir] do

0 comments on commit 3142571

Please sign in to comment.