From 45b045260ec4010a71f27f93b3d601985b6f9311 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Mon, 27 Mar 2017 07:25:12 +0200
Subject: [PATCH] Update run.sh

---
 run.sh | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/run.sh b/run.sh
index b6851e3..94f810e 100644
--- a/run.sh
+++ b/run.sh
@@ -5,16 +5,9 @@ shutdown -h +60 "Timeout on VM creation"
 
 
 if [ -e "/vagrant/build.sh" ]; then
-
-    cp -f /vagrant/build.sh ~/build.sh
-    echo """
-wait""" >> ~/build.sh
-    bash ~/build.sh
+    bash /vagrant/build.sh
 fi
 
 if [ -e "/vagrant/build_as_vagrant.sh" ]; then
-    cp -f /vagrant/build_as_vagrant.sh ~/build_as_vagrant.sh
-    echo """
-wait""" >> ~/build_as_vagrant.sh
-    sudo -H -u vagrant -- bash ~/build_as_vagrant.sh
+    bash /vagrant/build_as_vagrant.sh
 fi
-- 
GitLab