update:
  before_script:
    # Abhängigkeiten überprüfen
    - which virtualbox
    - which vagrant
    - which composer
    - which git
    - which php
    # Pfad zum neu geklonten Repo
    - path=`pwd`
    - cd ~/
    # Klone das Repo neu, falls es noch nicht existiert
    - if [ ! -d ~/MetaGer ] ; then git clone "$path" ; fi
    # Falls notwendig Laravel-Framework initialisieren:
    - cd MetaGer
    - composer update
    - chmod -R 777 storage/ bootstrap/cache/
    - if [ ! -f .env ] ; then cp .env.example .env ; fi
    - if [ $(grep "SomeRandomString" .env) ] ; then php artisan key:generate ; fi
  script:
    - cd ~/MetaGer
    - git pull "$path"