Vagrantfile doesn't rm git/vpp and vagrant reload --provision 74/174/3
authorKeith Burns (alagalah) <alagalah@gmail.com>
Sun, 31 Jan 2016 19:53:46 +0000 (20:53 +0100)
committerGerrit Code Review <gerrit@fd.io>
Mon, 1 Feb 2016 03:18:56 +0000 (03:18 +0000)
result is not expected. ie don't get updates

- only applied ubuntu changes in this patch.

Change-Id: I194f5120734d63f1b815f86bb510f0c0981dd89b
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
build-root/vagrant/bootstrap.ubuntu1404.sh

index 04f341a..35865fa 100644 (file)
@@ -48,10 +48,12 @@ start hugepages
 
 # Setup the vpp code
 cd ~vagrant/
+
 sudo -u vagrant mkdir git
 cd git/
 
-# You will need to alter this line to reflect reality.
+# Check if git exists and remove it before attempting clone, else clone ineffective when "reload --provision"
+[ -d vpp ] && rm -rf vpp
 sudo -H -u vagrant git clone /vpp
 cd vpp/