From a8606bc2c5f8bb559da2e18235daa61211820fbf Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 14 Apr 2015 15:24:53 +0200 Subject: [PATCH] Fix .ungitrc. Only checkout Git-repo if not already there. --- .ungitrc | 4 ++-- bootstrap.sh | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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