diff --git a/.ungitrc b/.ungitrc index 30edd6b..189481c 100644 --- a/.ungitrc +++ b/.ungitrc @@ -1,4 +1,4 @@ { - launchBrowser: false, - forcedLaunchPath: /var/www/html/ocde + "launchBrowser": false, + "forcedLaunchPath": "/var/www/html/ocde" } diff --git a/bootstrap.sh b/bootstrap.sh index 408ec44..12c8fd2 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -38,5 +38,7 @@ cp /vagrant/.ungitrc /home/vagrant/ sudo -u vagrant nohup ungit >/tmp/ungit.log 2>&1 & -# Checkout OCDE code -sudo -u vagrant git clone $OC_GIT /var/www/html/ocde +# Checkout OCDE code if not already there +if [ ! -d /var/www/html/ocde/.git ]; then + sudo -u vagrant git clone $OC_GIT /var/www/html/ocde +fi