From c7682028a6fc078fb11f1789d55e2d81b11bf868 Mon Sep 17 00:00:00 2001 From: Jesse Zhang Date: Mon, 9 Apr 2012 17:07:57 -0700 Subject: [PATCH] [dev_setup] Install wget Wget is not included in `ubuntu-minimal'. Installing wget before proceeding enables us to run dev_setup in a debootstrap chroot / jail. Change-Id: Iff012208f58f9946c64ce27448294af42e558a57 --- dev_setup/bin/vcap_dev_setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev_setup/bin/vcap_dev_setup b/dev_setup/bin/vcap_dev_setup index 87b9cac..3af1f60 100755 --- a/dev_setup/bin/vcap_dev_setup +++ b/dev_setup/bin/vcap_dev_setup @@ -85,6 +85,12 @@ function run_cmd () { } # Check if we have access to the web +run_cmd apt-get $APT_CONFIG install -qym wget +if [ $? -ne 0]; then + echo "Can't install prerequisite: wget" + exit 1 +fi + which wget > /dev/null if [ $? -eq 0 ]; then echo "Checking web connectivity."