From 233d95ee342623ca66e3f1ab564a5967071bbcc8 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Fri, 28 Oct 2016 12:07:57 +0100 Subject: [PATCH] Vagrantfile: Don't try to create extant link `ln` fails if the link already exists. Since 7cbc9233 (Vagrantfile: Bail out of provisioning if anything fails) this breaks re-provisioning a VM with `vagrant reload --provision`. Check if /home/vagrant/lisa already exists and if it does, leave it alone. --- Vagrantfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index eef54b793..98877c42c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,7 +26,9 @@ Vagrant.configure(2) do |config| sudo pip install ipython[notebook] pandas psutil wrapt sudo apt-get remove -y w3m - ln -s /vagrant /home/vagrant/lisa + if [ ! -e /home/vagrant/lisa ]; then + ln -s /vagrant /home/vagrant/lisa + fi cd /home/vagrant/lisa ANDROID_SDK_URL="https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz" -- GitLab