Fix .ungitrc. Only checkout Git-repo if not already there.

This commit is contained in:
Markus Birth 2015-04-14 15:24:53 +02:00
parent 93fee36b19
commit a8606bc2c5
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{
launchBrowser: false,
forcedLaunchPath: /var/www/html/ocde
"launchBrowser": false,
"forcedLaunchPath": "/var/www/html/ocde"
}

View File

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