From 480c9f0d28311ffaedc9e59eb630ceab05f7063d Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Tue, 18 May 2021 17:30:29 +0200
Subject: [PATCH] L2SS-218 Remove the old tango dir after the new one was
 pulled

---
 bootstrap/sbin/rebuild_system_from_scratch.sh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/bootstrap/sbin/rebuild_system_from_scratch.sh b/bootstrap/sbin/rebuild_system_from_scratch.sh
index da036e21d..30bfb1db0 100755
--- a/bootstrap/sbin/rebuild_system_from_scratch.sh
+++ b/bootstrap/sbin/rebuild_system_from_scratch.sh
@@ -38,12 +38,8 @@ function remove_images()
 function pull_tango()
 {
     git clone https://git.astron.nl/lofar2.0/tango.git ${HOME_DIR}
-}
-
-function stop_images()
-{
-    pushd ${HOME_DIR}/docker-compose && make stop
-    popd
+    # Now remove the old tango dir.
+    rm -rf ${OLD_HOME_DIR}
 }
 
 function clean_images()
-- 
GitLab