add guard for provisioning script in getting-started

This commit is contained in:
Igor Kapkov 2014-09-03 22:08:57 +08:00
parent 4c7eeb7595
commit 032f3b05a2
1 changed files with 4 additions and 2 deletions

View File

@ -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