diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f70f64ad7dd5d06b2dea80f1f1cb62b8cde841f1..67cac2f9710b63163fe6b7c9c8932be95caba502 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,14 +8,8 @@ update:
     - 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" ; cd ~/MetaGer ; composer update ; chmod -R 777 storage/ bootstrap/cache ; fi
-    # Falls notwendig Laravel-Framework initialisieren:
-    - if [ ! -f .env ] ; then cp .env.example .env ; fi
-    - if [ $(grep "SomeRandomString" .env) ] ; then php artisan key:generate ; fi
-    # Falls notwendig Homestead Server intialisieren:
-    - cd ~/
+    - cd ~/MetaGer
+    - ./deploy/checkServerStatus.sh
   script:
     - cd ~/MetaGer
     - git pull "$path"
diff --git a/deploy/checkServerStatus.sh b/deploy/checkServerStatus.sh
new file mode 100755
index 0000000000000000000000000000000000000000..b450a34d8dc391736d0743dac19752a0cf94c854
--- /dev/null
+++ b/deploy/checkServerStatus.sh
@@ -0,0 +1,24 @@
+# Klone das Repo neu, falls es noch nicht existiert
+if [ ! -d ~/MetaGer ]
+then 
+	cd ~/
+	git clone "$path" 
+	cd ~/MetaGer
+	composer update 
+	chmod -R 777 storage/ bootstrap/cache
+fi
+# Falls notwendig Laravel-Framework initialisieren:
+
+if [ ! -f ~/MetaGer/.env ]
+then 
+	cd ~/MetaGer
+	cp .env.example .env
+fi
+if [ $(grep "SomeRandomString" .env) ]
+then 
+	cd ~/MetaGer
+	php artisan key:generate
+fi
+    # Falls notwendig Homestead Server intialisieren:
+  #  - cd ~/
+   # - vagrant box add --provider virtualbox laravel/homestead
\ No newline at end of file