From 032f3b05a21dd94302368918053def925d6bf8f9 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Wed, 3 Sep 2014 22:08:57 +0800 Subject: [PATCH] add guard for provisioning script in getting-started --- website/docs/source/v2/getting-started/provisioning.html.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/docs/source/v2/getting-started/provisioning.html.md b/website/docs/source/v2/getting-started/provisioning.html.md index 18e44772f..ad2b24150 100644 --- a/website/docs/source/v2/getting-started/provisioning.html.md +++ b/website/docs/source/v2/getting-started/provisioning.html.md @@ -26,8 +26,10 @@ and save it as `bootstrap.sh` in the same directory as your Vagrantfile: apt-get update apt-get install -y apache2 -rm -rf /var/www -ln -fs /vagrant /var/www +if ! [ -L /var/www ]; then + rm -rf /var/www + ln -fs /vagrant /var/www +fi ``` Next, we configure Vagrant to run this shell script when setting up